3 ms·
> But people bend over backwards to explain why “z = { |x| x + 1 }” is bad and shouldn't be allowed. Really? I’ve never seen anyone bend over backward to expla
by dragonwriter 5y ago
> But people bend over backwards to explain why “z = { |x| x + 1 }” is bad and shouldn't be allowed.
Really? I’ve never seen anyone bend over backward to explain it as bad, mostly just that that's the way it is, there are tradeoffs either way, and its not worth changing.
> The whole block vs proc thing is an artificial distinction
Presumably, you mean lambda vs. proc. (Both of which are defined using blocks, and procs are what using & syntax in a function signature causes a passed block to be reified into.)
But, yes, all distinctions are creations of humans, especially all distinctions within human creations like, say, programming languages. So “artificial distinction” is a meaningless descriptor when we are talking about things in a programming language.