Simply implicit method invocation chaining (update)
Ulf.Zibis at gmx.de
Fri May 15 01:08:59 PDT 2009
Am 15.05.2009 07:14, Joseph D. Darcy schrieb:
> Catching up on proposal responses, if one of the problems this
> proposal is meant to address is overly-long variable names, a much
> simpler solution is to use a local variable with a short name!
Thanks for catching up my proposal for the first time.
I admit, that the given example was exaggerated, but even with short
names, it's annoying to the author _and_ the reader if same name is
multiple repeated, and it hampers the view to the essence of the
statement. To remain simple, my example only repeats it 2 times, but I
have seen examples with more repetitions.
But OK, this part is the advanced part of my proposal.
> While fluent interfaces are fine, I don't think using a language
> change to retrofit this pattern of API usage on code not written that
> way is the best use of the language change budget.
Well, I guess the cost is very low, because it's only about simple
textual substitution from compiler side.
More information about the coin-dev