Re: [Hampshire] Code style

Kezdőlap

Reply to this message
Szerző: Victor Churchill
Dátum:  
Címzett: Hampshire LUG Discussion List
Tárgy: Re: [Hampshire] Code style
> > > I'm not a fan of the whole concept. I've rarely met a use
> > > of the ternary operator, in any language, that made code easier to
> > > read.)
>


I'd better not reveal some of my code then ;-) I have been known to hang
ternaries inside me ternaries on occasion. A quick scan for \?.*: finds one
usage to apply a floor and ceiling to a variable in a single expression,
plus a couple of cascades serving as switch statements.