syntax idea: simplifed ifs
BCS
BCS_member at pathlink.com
Wed Apr 19 14:46:05 PDT 2006
dennis luehring wrote:
>
> how would you write these example in your in syntax?
>
> if( x == [ a && !b || c ] ) --> if( x == a && x == !b || x == c )
>
> if( x == [ a && (!b || c)] ) --> if( x == a && ( x == !b || x == c ) )
>
> ciao dennis
>
I wouldn't use any shorthand, I would use the expanded form
if( x == a && x == !b || x == c )
if( x == a && ( x == !b || x == c ) )
to much shorthand just leads to confusion
More information about the Digitalmars-d
mailing list