View Single Post
  #11  
Old 01-13-2024, 09:02
phroyt phroyt is offline
Friend
 
Join Date: May 2018
Posts: 77
Rept. Given: 0
Rept. Rcvd 8 Times in 4 Posts
Thanks Given: 35
Thanks Rcvd at 106 Times in 40 Posts
phroyt Reputation: 8
The ':=' operator is officially known as the assignment operator.
It was dubbed the walrus operator because the ':=' syntax resembles the eyes and tusks of a sideways walrus.

Walrus appeared in Python 3.8

Code:
>>> walrus = False
>>> walrus
False

>>> (walrus := True)
True
>>> walrus
True
I loved the early days of Object Pascal, Win32, and Delphi 1 and 2.
Everything started to fall apart to Borland when Anders Hejlsberg went to Microsoft.

BTW I still use Delphi and earn money from it, even after almost 30 years.

R.I.P Niklaus!
Reply With Quote