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

Continue statement? #187

Open
AntonBogun opened this issue Jul 18, 2022 · 6 comments
Open

Continue statement? #187

AntonBogun opened this issue Jul 18, 2022 · 6 comments

Comments

@AntonBogun
Copy link
Contributor

I could not find any description on a continue statement which can be seen in other languages, and it does not seem to be a reserved identifier inside loops. Is this intentional or was it just not implemented yet?

@aardappel
Copy link
Owner

I guess I've simply never had a need for it. It could definitely be added.

@salping
Copy link

salping commented May 11, 2023

is this planned to be added, or is this just a dead thread? continue would be super helpful for lots of projects.

@aardappel
Copy link
Owner

is this planned to be added, or is this just a dead thread?

Neither. This is not an open source project with permanent staffing, so things get added when contributors feel like implementing things, not anything on a set priority or schedule.

@Hjagu09
Copy link

Hjagu09 commented Nov 23, 2023

I think the new guard statement could be used like a conditional continue... Correct me if I'm wrong but a separate continue statement shouldn't be necessary, you can always write guard false and it should be perfectly equal to an conventional continue

@aardappel
Copy link
Owner

guard false only shortcuts the current block, so wouldn't allow for the more common if ...: continue.
Also, guard false never executes the statements following it, so would be non-sensical.

@tigercoding56
Copy link

is this planned to be added, or is this just a dead thread?

Neither. This is not an open source project with permanent staffing, so things get added when contributors feel like implementing things, not anything on a set priority or schedule.

i checked the doc folder, sorry if this is a stupid question but is there documentation on where keywords are implemented i just found documentation about the lobster language itself

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

No branches or pull requests

5 participants