DIP19: Remove comma operator from D and provision better syntactic support for tuples

Adam D. Ruppe destructionator at gmail.com
Sun Sep 23 14:38:01 PDT 2012


I'm not for removing the comma operator, but it occurs to me we 
could do it in the library:

auto commaOperatorReplacement(T...)(T t) {
    return t[$-1];
}

There might be some edge case where that wouldn't work, but I 
think it works in most cases.


More information about the Digitalmars-d mailing list