Ports the for macro from Drython, but not everything works yet. break and continue will need their own macros. These should be able to take labels and results like Drython, and unlike Python (but we need them because we have no return statement).
The for macro uses !let's destructuring syntax. This is more powerful than Python's version. To make !let more consistent with for, !let has been changed to require a :from control word where for uses its :in control word.
Also some fixes for the try macro, but it still needs more tests.
Ports the
for
macro from Drython, but not everything works yet.break
andcontinue
will need their own macros. These should be able to take labels and results like Drython, and unlike Python (but we need them because we have noreturn
statement).The
for
macro uses!let
's destructuring syntax. This is more powerful than Python's version. To make!let
more consistent withfor
,!let
has been changed to require a:from
control word wherefor
uses its:in
control word.Also some fixes for the try macro, but it still needs more tests.