Should the comma operator be removed in D2?
Stewart Gordon
smjg_1998 at yahoo.com
Wed Nov 18 11:57:32 PST 2009
Yigal Chripun wrote:
<snip>
> the only use case that will break is if the two increments are dependent
> on the order (unless tuples are also evaluated from left to right):
> e.g.
> a + 5, b + a //
<snip>
If you're overloading the + operator to have an externally visible side
effect, you're probably obfuscating your code whether you use the comma
operator or not.
Moreover, how can you prove that nothing that uses the operator's return
value can constitute a use case?
Stewart.
More information about the Digitalmars-d
mailing list