syntax idea: simplifed ifs

dennis luehring dl.soluz at gmx.net
Mon Apr 10 15:04:21 PDT 2006


for example how often do we use constructs like

if( x ==  10 && x == 20 && x == 30 )

simplified:
if( x == [10 && 20 && 30] )

if( a >= h && b >= h && c >= h )

simplified:
if( [a && b && c] >= h )

(just an idea)

ciao dennis



More information about the Digitalmars-d mailing list