Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lack of break/continue in loop constructs. #4612

Closed
vicuna opened this issue Sep 10, 2008 · 1 comment
Closed

lack of break/continue in loop constructs. #4612

vicuna opened this issue Sep 10, 2008 · 1 comment

Comments

@vicuna
Copy link

vicuna commented Sep 10, 2008

Original bug ID: 4612
Reporter: ais
Status: closed (set by @mshinwell on 2016-12-07T17:30:40Z)
Resolution: won't fix
Priority: normal
Severity: feature
Version: 3.10.2
Category: ~DO NOT USE (was: OCaml general)

Bug description

Occasionally, during the process of incremental development it becomes apparent that a break/continue statement is just what is needed. The alternative is to refactor to a recursive style, but this is not always desirable when it causes additional work or when copying an algorithm out of a recipe book.

Additional information

Please investigate Sanghyeon Seo's patch from the Caml list for possible inclusion. Break and continue are desireable only if they can be implemented without overhead.

@vicuna
Copy link
Author

vicuna commented Dec 7, 2016

Comment author: @mshinwell

If you must, these can be implemented using exceptions. I doubt there would be sufficient support for adding these as keywords in the language.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant