D idioms list
    bearophile via Digitalmars-d-announce 
    digitalmars-d-announce at puremagic.com
       
    Thu Jan  8 02:55:59 PST 2015
    
    
  
ponce:
> I'm not familiar with the terse, range-heavy, UFCS style that 
> has emerged from Phobos
In Rosettacode I have inserted tons of examples of that coding 
style.
An example, given a tuple of arbitrary length, with items all of 
the same type, how do you compute the total of its items?
The last way I've invented is:
myTuple[].only.sum
It's also @nogc. But it causes a little of template bloat.
Bye,
bearophile
    
    
More information about the Digitalmars-d-announce
mailing list