Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

True, but now you're relying on a specific implementation and optimization of the compiler, unless the language semantics explicitly say that lambdas will be inlined.


This is true of literally anything and everything your compiler emits. In practice the functional style is much easier to optimize to a far greater degree than the imperative style.


This is why you shouldn't get into arguments about performance on the internet without highly specified execution environments.

I'm going to take my own advice and go back to work :)




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: