Hacker News new | ask | show | jobs
by Virax 6152 days ago
I can't buy into a language that uses colon for assignment.
3 comments

I like it.

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 (<-, :=).

I thought it was kinda interesting. Do any other languages do this?
+1, I had a really hard time reading through even the simple examples!