A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2018-July/154415.html below:

[Python-Dev] PEP 572: Do we really need a ":" in ":="?

[Python-Dev] PEP 572: Do we really need a ":" in ":="? [Python-Dev] PEP 572: Do we really need a ":" in ":="?Steven D'Aprano steve at pearwood.info
Thu Jul 5 22:35:18 EDT 2018
On Thu, Jul 05, 2018 at 09:00:39PM -0400, Alexander Belopolsky wrote:

> Do we want to protect users who
> cannot tell = from == so much that  we are willing to cause Python to be
> the first language with two non-interchangeable assignment operators?

Not even close to the first. Go beat us to it -- it has both = and := 
assignment operators.

Ocaml also has := for regular assignment and <- for assignment to 
mutable fields.

Similarly, Haskall has = for assignment definitions and <- for binding 
in monads.



-- 
Steve
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4