Closed flofriday closed 1 year ago
Yes, I think internally we should move the else if as new if inside the else block of the outer if. So we don't have to change anything in the typechecker and interpreter... It's just a little change inside the parser 🤔
Supporting, else-if was really just a limitation of the parser and removing it worked imediatly. This means we now support else-ifs :tada:
Example
Note
This should be easily possible if we don't require else to be followed by a block statement.