From 60366fc50d999e2450582418960440f17b659593 Mon Sep 17 00:00:00 2001 From: rafa_br34 <66086623+rafabr34@users.noreply.github.com> Date: Sun, 6 Feb 2022 20:51:00 -0300 Subject: [PATCH] removed dynamic jump --- rfcs/syntax-goto-statement.md | 9 --------- 1 file changed, 9 deletions(-) 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