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

Implement break and continue for loops #52

Open
mertyildiran opened this issue Jul 20, 2020 · 0 comments
Open

Implement break and continue for loops #52

mertyildiran opened this issue Jul 20, 2020 · 0 comments
Assignees
Labels
feature request New feature or request
Projects

Comments

@mertyildiran
Copy link
Member

Implement break and continue keywords for loops. These keywords should only be usable inside decision blocks like:

num def add(num x, num y)
    num z = x + y
end {
    z == 8  : continue,
    z > 10  : break,
    default : f3()
}

and such functions that utilizes these keywords, should automatically be recognized as looping functions therefore can only be called inside loop. If such function is called outside loop then an error must be thrown.

@mertyildiran mertyildiran added the feature request New feature or request label Jul 20, 2020
@mertyildiran mertyildiran self-assigned this Jul 20, 2020
@mertyildiran mertyildiran added this to To do in Chaos via automation Jul 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature or request
Projects
Chaos
  
To do
Development

No branches or pull requests

1 participant