Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #88185 > unrolled thread

Re: Proposal for new minor syntax

Started bySkip Montanaro <skip.montanaro@gmail.com>
First post2015-03-27 15:51 -0500
Last post2015-03-27 15:51 -0500
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Proposal for new minor syntax Skip Montanaro <skip.montanaro@gmail.com> - 2015-03-27 15:51 -0500

#88185 — Re: Proposal for new minor syntax

FromSkip Montanaro <skip.montanaro@gmail.com>
Date2015-03-27 15:51 -0500
SubjectRe: Proposal for new minor syntax
Message-ID<mailman.279.1427489496.10327.python-list@python.org>

[Multipart message — attachments visible in raw view] — view raw

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

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web