As of now, the only way to assign things is to use local variables. Obviously, other things are assignable:
fields/properties of structs/classes
array indices
this variable in class constructors
Eventually:
destructuring
array destructuring
array rest
struct destructuring
struct rest
To support these things, we need assignable expressions.
Assignable expressions are a subset of expressions that can appear on the left side of an assignment statement.
Assignables
Dependencies: Import/Export Additions
Description:
As of now, the only way to assign things is to use local variables. Obviously, other things are assignable:
To support these things, we need assignable expressions. Assignable expressions are a subset of expressions that can appear on the left side of an assignment statement.
New syntactic features:
New Tokens:
none
New NonTerminals:
Extended NonTerminals:
New semantic features:
Transformation: