Re: [Hampshire] Code style

Kezdőlap

Reply to this message
Szerző: Vic
Dátum:  
Címzett: hampshire
Tárgy: Re: [Hampshire] Code style

> So in perl one could boil the whole thing down to
> my $result = ($fast_path_applicable?) $fast_path() : $slow_path() ;
> return $result;


You can do the same in C - what comes out of the compiler is identical to
the simple "if" idiom I used earlier. So - for clarity - I'd still go for
that one...

Vic.