On 08/22/2015 12:04 AM, Jonathan M Davis wrote:
On Friday, 21 August 2015 at 21:13:35 UTC, David Nadlinger wrote:
On Friday, 21 August 2015 at 20:01:21 UTC, Vladimir Panteleev wrote:
"This warning almost doesn't break any code!"
It indeed doesn't break almost any code. Yours is quite the outlier.
In general, it gets a bit interesting when a feature is useful if used
correctly and gets used correctly by experts but generally screws up
most programmers. For instance, the comma operator would be a case of
that. If used correctly, it can be really useful, but it's so easy to
misuse that it's generally considered bad practice to use it. And yet,
I'm sure that there are folks out there who love it and use it correctly
on a regular basis. That's not the norm though.
- Jonathan M Davis
For the comma operator, I think it's pretty clear that the usage of ','
to separate components of a tuple would be more useful.
(With L-T-R evaluation, replacing usages of the comma operator is easy,
e.g. 'a,b,c' becomes '(a,b,c)[$-1]', not to speak about the delegate
option.)