2 ms·
I'm not arguing about which paradigm is better. I'm not saying theres no way around it. I'm just describing a single pitfall in the functional paradigm. That's
by crimsonalucard 9y ago
I'm not arguing about which paradigm is better. I'm not saying theres no way around it. I'm just describing a single pitfall in the functional paradigm. That's all.
- ece 9y agoBeing able to write asynchronous (multi-threaded or not) code so easily using FP is most definitely not a pitfall. Even in the most simple multi-threaded imperative programs, no compiler or hardware will give you almost any sort ordering guarantees by default. You have to use atomics or volatile or something else to get specific ordering guarantees. It's the same in FP compilers too.
- crimsonalucard 9y ago>Being able to write asynchronous (multi-threaded or not) code so easily using FP is most definitely not a pitfall. Your point? You're saying this as if I disagreed with you. What are you trying to argue here? That FP is the better than imperative? Did I ever dispute that claim? Where are you going with this?