opApply/opApplyReverse return value types

BCS BCS at pathlink.com
Fri Oct 20 10:23:36 PDT 2006


Bill Baxter wrote:
> BCS wrote:
> 
>> Bill Baxter wrote:
>>>
>>> And there's probably even something cleaner using exceptions or scope 
>>> statements.
>>>
>>
>> Who cares about clean? The compiler's doing it, all that I want is 
>> fast code.
> 
> 
> I agree that foreach shouldn't induce excessive overhead.  But maybe I 
> differ in that I'd gladly take a small speed hit for improved 
> readability/usability/maintainablility.  I don't think foreach needs to 
> compile down to the exact same code as the best possible for loop.
> 

Actually, I was referring to clean/messy code generation. Clean source 
code is a must. What the compiler does with it... Who cares? Sort of 
like lex/yacc, the derived code is so ugly that nobody wants to maintain 
it by hand, but nobody has to.

> 
> --bb



More information about the Digitalmars-d-learn mailing list