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:
@@ -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,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user