syntax idea: simplifed ifs
Charles
noone at nowhere.com
Tue Apr 11 10:08:46 PDT 2006
dennis luehring wrote:
> 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
I've often wanted this, gets my vote, if you cound find a syntax that
keeps it context free.
More information about the Digitalmars-d
mailing list