Re: [Hampshire] Code style

Página Inicial

Reply to this message
Autor: Vic
Data:  
Para: hampshire
Assunto: 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.