This commit is contained in:
Krzosa Karol
2023-04-01 11:54:52 +02:00
parent 4f80cff8e1
commit 21c9a57d96
2 changed files with 18 additions and 0 deletions

View File

@@ -509,6 +509,12 @@ struct Ast_For : Ast {
struct Ast_Lambda : Ast_Expr {
Array<Ast_Decl *> args;
// :Multiple arguments
// @todo: maybe disallow multiple arguments in current form
// and use polimorphism. Then we could make var unpacking,
// unpack structs making it more powerful
// @cleanup @refactor: return value shouldn't be a array of expressions.
// It should be a single expression. So probably need a special type
// for that.