Apr-24-2021, 09:13 AM
(Apr-22-2021, 12:22 AM)Skaperen Wrote: how would you feel if Python's assignment operator was := instead of just = ?
I won't feel any change, because of some relativistic effects during time travel.
I use from the IEC 61131-3 standard the Structured Text. The syntax is similar to Pascal, and it's not vendor-specific.
https://en.wikipedia.org/wiki/Structured_text
The
:=
is used for assignment. A plain colon is followed by a datatype and comparison is made with =
.I don't have bad feelings to write
:=
and if Python had this instead of =
, I think we won't recognize it or talk much about it.Changing this decision afterwards without breaking all existing code is nearly impossible.
Almost dead, but too lazy to die: https://sourceserver.info
All humans together. We don't need politicians!
All humans together. We don't need politicians!