[Python-Dev] PEP 572: Assignment Expressions (original) (raw)
Gregory P. Smith greg at krypto.org
Wed Apr 18 17:26:17 EDT 2018
- Previous message (by thread): [Python-Dev] PEP 572: Assignment Expressions
- Next message (by thread): [Python-Dev] PEP 572: Assignment Expressions
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Wed, Apr 18, 2018 at 11:04 AM Barry Warsaw <barry at python.org> wrote:
On Apr 18, 2018, at 10:43, MRAB <python at mrabarnett.plus.com> wrote:
> Some languages use '=' for assignment, others for equality, but do you know of a language that uses ':=' for equality' or '==' for assignment? Clearly we should take a page from the ternary operator and make the assignment expression operator just ugly enough that people won’t overuse it. Since I can’t have ‘>>’ or ‘<>’ back, I propose ‘=======‘. go-ahead-count-‘em-every-time-ly y’rs,
8 of course. to "match" what merge conflict markers look like. ;)
php already uses === for something, we should just use =========== so we can say "it goes to eleven", ending the operator war once and for all. :P
-gps -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.python.org/pipermail/python-dev/attachments/20180418/dd5caa63/attachment.html>
- Previous message (by thread): [Python-Dev] PEP 572: Assignment Expressions
- Next message (by thread): [Python-Dev] PEP 572: Assignment Expressions
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]