Python Forum
how would you feel if ...
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
how would you feel if ...
#4
(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!
Reply


Messages In This Thread
how would you feel if ... - by Skaperen - Apr-22-2021, 12:22 AM
RE: how would you feel if ... - by snippsat - Apr-22-2021, 02:50 AM
RE: how would you feel if ... - by Skaperen - Apr-23-2021, 06:03 PM
RE: how would you feel if ... - by DeaD_EyE - Apr-24-2021, 09:13 AM
RE: how would you feel if ... - by nilamo - May-07-2021, 06:23 PM
RE: how would you feel if ... - by Skaperen - Apr-25-2021, 06:03 PM
RE: how would you feel if ... - by Gribouillis - Apr-26-2021, 09:19 AM
RE: how would you feel if ... - by Skaperen - Apr-26-2021, 10:27 PM
RE: how would you feel if ... - by ndc85430 - Apr-29-2021, 05:06 PM
RE: how would you feel if ... - by Skaperen - Apr-30-2021, 01:04 AM
RE: how would you feel if ... - by ndc85430 - May-02-2021, 04:54 AM
RE: how would you feel if ... - by Skaperen - May-03-2021, 07:40 PM
RE: how would you feel if ... - by Larz60+ - May-07-2021, 11:00 PM
RE: how would you feel if ... - by Skaperen - May-10-2021, 02:14 AM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020