Re:A Look at Crystal, the Programming Language for Humans
by pjmlp on Friday May 05, 2023 @07:34AM
(#35827912)
You forgot those that look like Pascal and those that look like ML.
[ Parent
| on HN ]
Re:A Look at Crystal, the Programming Language for Humans
by varjag on Friday May 05, 2023 @10:44AM
(#35829872)
Hadn't seen := in a new language in a while tho.
Re:A Look at Crystal, the Programming Language for Humans
by poo-yie on Friday May 05, 2023 @01:42PM
(#35832648)
go has it. it's not brand new, but relatively new.
Re:A Look at Crystal, the Programming Language for Humans
by pjmlp on Friday May 05, 2023 @02:50PM
(#35833602)
Walrus operator in Python.
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 …