in reply to Why not support this syntax?
since, IMO, reads better than having consecutive '<'s or '>'s, but this also has similar parsing problems particularly in the mixed variety with balancing parans.if ( $x in [$min, $max] ) { ... } #inclusive container, # $x==$min would be true # OR if ( $x in ($min, $max) ) { ... } #exclusive container, # $x==$min would be false # OR if ( $x in ($min, $max] ) { ... } #mixed ends
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Why not support this syntax?
by MeowChow (Vicar) on Apr 24, 2001 at 07:59 UTC |