Proposal for new minor syntax

Skip Montanaro skip.montanaro at gmail.com
Fri Mar 27 16:51:33 EDT 2015


Interesting concept. I suppose it offers some small optimization
opportunities, and clearly saves some possibly error-prone typing. You
construct the object on the left-hand side, then just DUP_TOP to get its
use on the RHS.

A couple comments though:

* "dot" is pretty invisible unless surrounded by stuff on both sides (as
when used like "hello.strip()"). The canyon formed by the characters on
either side, and the mostly white space in the middle tends to make it more
visible. That's less the case when it's bounded by white space on one side.

* Probably better to propose it on python-ideas.

* Ideas are always better received when accompanied by working code. :-)

Skip
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20150327/788d7b4c/attachment.html>


More information about the Python-list mailing list