Re: [Hampshire] Code style

Página Inicial

Reply to this message
Autor: Victor Churchill
Data:  
Para: Hampshire LUG Discussion List
Assunto: 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.