Using '=' for assignment makes less sense than using <- or := or : because traditionally (i.e. mathematically) '=' work like a declaration or a constraint. Then there is the confusion between = and == that has always resulted in countless bugs.
Of course, assignment is a very common operation and I would rather use 1 char (:) for it rather than two (<-, :=).
Using '=' for assignment makes less sense than using <- or := or : because traditionally (i.e. mathematically) '=' work like a declaration or a constraint. Then there is the confusion between = and == that has always resulted in countless bugs.
Of course, assignment is a very common operation and I would rather use 1 char (:) for it rather than two (<-, :=).