[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
More information about the Python-Dev mailing list
Thu Jul 5 22:35:18 EDT 2018
- Previous message (by thread): [Python-Dev] PEP 572: Do we really need a ":" in ":="?
- Next message (by thread): [Python-Dev] PEP 572: Do we really need a ":" in ":="?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message (by thread): [Python-Dev] PEP 572: Do we really need a ":" in ":="?
- Next message (by thread): [Python-Dev] PEP 572: Do we really need a ":" in ":="?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-Dev mailing list