lang: ast: complex-msg args are now separated by commas

additionally, unnamed complex-msg args no longer need to be prefixed
with a colon. this allows complex-msgs to more closely emulate
traditional function calls. this also applies to the call-operator.

for example, take the following lambda:

	var f = [ :x :y | ^x * 2 + y ].

before, this lambda would be invoked using the following syntax:

	f(:2 :4).

now, this syntax is used instead:

	f(2, 4).
This commit is contained in:
2025-04-23 10:53:34 +01:00
parent 2673f29447
commit 279b387b69
2 changed files with 59 additions and 2 deletions

View File

@@ -33,6 +33,8 @@ enum expr_subtype {
EXPR_SUBTYPE_KEYWORD_ARG,
/* complex messages */
EXPR_SUBTYPE_COMPLEX_MSG,
/* expression delimited by commas */
EXPR_SUBTYPE_COMPLEX_ARG,
/* message cascade operation */
EXPR_SUBTYPE_CASCADE,
};