[Python-ideas] Dict-like object with property access
Joao S. O. Bueno
jsbueno at python.org.br
Wed Feb 1 12:33:46 CET 2012
More information about the Python-ideas mailing list
Wed Feb 1 12:33:46 CET 2012
- Previous message: [Python-ideas] Dict-like object with property access
- Next message: [Python-ideas] Dict-like object with property access
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Wed, Feb 1, 2012 at 6:06 AM, Simon Sapin <simon.sapin at kozea.fr> wrote: > Le 01/02/2012 02:06, MRAB a écrit : > >>> > I'm not a fan of any of the .[], .(), .{} patterns, nor of .! . >>> > >> >> .() looks the most sensible to me. >> > > If .[] looks like indexing, .() looks like calling. (I’m not for or against > either of these, just pointing out that they have the same problem.) Still, there should be something with a closing token. Try to imagine three of these in a chain, if the syntax is a colon: name1:name2:name3:name4 -> which could mean either of: name1:(name2:(name3:name4)), (name1:name2):(name3.name4) and so on - (not to mention other expressions involving names, though these would be less ambiguous due to to operator precedence. js -><- > > Regards, > > -- > Simon Sapin > > > _______________________________________________ > Python-ideas mailing list > Python-ideas at python.org > http://mail.python.org/mailman/listinfo/python-ideas
- Previous message: [Python-ideas] Dict-like object with property access
- Next message: [Python-ideas] Dict-like object with property access
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-ideas mailing list