Open aldum opened 4 months ago
In this case, the parser remembers, which form was used:
local function x() end --- vs local x = function() end
However, these:
function x() end --- vs x = function() end
get parsed into almost the same AST, making it nigh impossible to discern on the other side.
TODO: check what logic is used in one case and not in the other in the parser.
For now, let's keep it as is (syntactic sugar automatically applied in the global case), review later. Not scheduled for any sprint.
In this case, the parser remembers, which form was used:
However, these:
get parsed into almost the same AST, making it nigh impossible to discern on the other side.
TODO: check what logic is used in one case and not in the other in the parser.