Currently, the BraneScript REPL is very bad at remembering compilation state in between statements.
As a quick example, this works when provided in one go:
let test := null;
test := 42;
But when providing these statements separately in the REPL, you will see compile errors.
Fixing this issue properly would require changing the compilation to be much more aware that the REPL exists. This will be some work.
Currently, the BraneScript REPL is very bad at remembering compilation state in between statements.
As a quick example, this works when provided in one go:
But when providing these statements separately in the REPL, you will see compile errors.
Fixing this issue properly would require changing the compilation to be much more aware that the REPL exists. This will be some work.