:= (assignment) operator
The right-associative, binary
:= operator is used to assign a value to a
variable-annotated attribute or local variable.
variable Integer num := 1; num := 2;
You have to use
:= if you want to assign a value to a
= will result in a compile error.
:= operator is primitive.
:= operator is not polymorphic.
variable] annotation doc coming soon (../../ceylon.language/variable)
- operator precedence in the language specification