4 ms·
Plus some functional languages can combine those steps at compile, giving you the best of both worlds. Rust for example elides away many lambda's in map operati
by elcritch 9y ago
Plus some functional languages can combine those steps at compile, giving you the best of both worlds. Rust for example elides away many lambda's in map operations. I don't have the link handy, but a post a few months back showed Rust and Haskell functional patterns could almost match their hard coded imperative style implementations and C/C++ cousins.
- elcritch 9y agoHere it is: https://www.fpcomplete.com/blog/2017/07/iterators-streams-rust-haskell https://www.fpcomplete.com/blog/2017/07/iterators-streams-ru...
- AstralStorm 9y agoThe key word is "often". Which means not always, which means you cannot rely on it unless you check all your code in Godbolt or equivalent.
- pjmlp 9y agoWhich used to be a common complaint of C and Pascal compilers against manually written Assembly code.