Re: [Hampshire] Code style

Etusivu

Vastaa
Lähettäjä: Victor Churchill
Päiväys:  
Vastaanottaja: Hampshire LUG Discussion List
Aihe: 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.