>> When I looked at my function, I found I'd written "it->second;" rather
>> than "return it->second;". Not only is this apparently legal, it doesn't
>> even generate a compile-time /warning/.
>
> It's when I read things like that that I'm glad I found C# :-)
It's when I see things like this that I'm glad I use Haskell, not some
low-level performance-oriented language that doesn't mind giving you
garbage results if it makes the code 0.02% faster...
Post a reply to this message
|