diff --git a/rfcs/syntax-goto-statement.md b/rfcs/syntax-goto-statement.md index 88e30942..58abb25b 100644 --- a/rfcs/syntax-goto-statement.md +++ b/rfcs/syntax-goto-statement.md @@ -87,20 +87,11 @@ end `goto ` Jumps to a set label - -`goto ` Jumps to X line -Notes:
-If the number is a constant number, the compiler should optmize it
-Otherwise if the number is a variable, any registers needed should be saved before the jump
-If the X line is in another scope a error should be thrown
-If the X line is in a invalid place(inside an statement) a error should be thrown - ## Drawbacks Cross thread jumping could be a problem(but it would be very interesting if implemented and used correctly).
Lambdas/Functions that are called could bypass the scope boundary without runtime checks.
- ## Alternatives A break for nested loops