2 ms·
But that’s the point: what value does a language gain by making the distinction? It removes composability for no gain.
by gumby 4y ago
But that’s the point: what value does a language gain by making the distinction? It removes composability for no gain.
- zabzonk 4y agoThere is some gain in that you need to explicitly say that something is evaluatable, like: (+ 1 2) as opposed to: 1+2 Whether the gain is worth it is, I agree, debatable.
- gumby 4y agoLisp’s homoiconic representation is not relevant to this issue. In C, `1+2` is an expression that returns 3. `1+2+3` acts like two expressions (and perhaps it is; I forget the precise terminology used in the standard). You can write `return foo(1+2)`. But `for` introduces a statement so can only be used where a statement can.