Re: [Hampshire] Code style

Top Page

Reply to this message
Author: Vic
Date:  
To: hampshire
Subject: 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.