[Python-ideas] Dart-like method cascading operator in Python

Andrew Barnert abarnert at yahoo.com
Thu Nov 21 23:53:48 CET 2013


On Nov 21, 2013, at 11:10, Masklinn <masklinn at masklinn.net> wrote:

> 
>> So if this is any part of the argument for the proposal, I'm -1.
> 
> As far as there’s any interest to cascading it’s that it’s terser
> than sequencing calls with explicit receivers, and that it’s an
> expression allowing inline initialisation sequences and not requiring
> creating a binding.

Are you actually using the word "expression" in it's usual programming-language meaning here? As in, you really do want an expression, not a statement, that has indentation and statements and the like inside of it?


More information about the Python-ideas mailing list