Closed tp86 closed 1 year ago
Nice catch, looks like the compilation for global destructuring was completely wrong. Should be fixed by https://github.com/erde-lang/erde/commit/7f499b6171791a1e3d48a07e0c85c5bd2a787b97 but lmk if there are still any problems
Thanks for such a quick fix!
I couldn't figure out how to make destructuring work in REPL:
Looking at the playground I noticed that destructuring with
global
keyword doesn't seem to be compiled correctly:compiles to
I want
a
to be global variable, not some temporary variable. Would be much better to compile to something like