AltoLang / Alto

Compiler in the works!
MIT License
3 stars 1 forks source link

`Nested Functions`: Allow for function declarations inside block statements. #60

Closed FilipToth closed 3 years ago

FilipToth commented 3 years ago

Background and Motivation

We need to introduce this concept before moving to OO, it'll make the underlying work for OO-Support (#55) much more simpler as we'll just the BlockStatement API for class bodies.

What should this do

I think it's pretty self-explanatory... Of course the functions declared inside the BlockStatement will stay in the statement's scope.

FilipToth commented 3 years ago

Implemented here: #66.