|
|
|
|
|
by squiggleblaz
3214 days ago
|
|
Although I don't like most of his alleged improvements, surely a separate map/flatMap would be more like function calls. If I write function foo(v) {
return function () { return v }
}
const fv = foo(4)
then I expect fv will be a function, not a number. In that respect, I think the choice to make `then` flatten was a poor decision that makes it more confusing for people who don't really take the time to understand. Such people don't realise it's confusing: they simply notice it's usually convenient; but they're inhibited from drawing the correct analogies.But as for the rest. Yeah, it's just arbitrary and weird. Maybe we should make integers all arrays lazy by default too? |
|