[Python-Dev] PEP 572: Do we really need a ":" in ":="?
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 :=
Ocaml also has := for regular assignment and <- for assignment to
Similarly, Haskall has = for assignment definitions and <- for binding
More information about the Python-Dev