Re:A Look at Crystal, the Programming Language for Humans
by pjmlp on Friday May 05, 2023 @02:50PM
(#35833602)
Walrus operator in Python.
[ Parent
| on HN ]
Re:A Look at Crystal, the Programming Language for Humans
by qwertfisch on Wednesday May 10, 2023 @06:06AM
(#35885527)
Except that the walrus operator “:=” is an assignment expression, whereas in Pascal it is an assignment statement, like “=” in many languages. In Pascal, the boolean comparison operator is “=” instead of “==” (in the same many languages).
And there is C where the assignment expression is just “=”, there is no assignment statement, and many forgotten double equals led to bugs …