4 ms·
The mainstream may realize how syntax doesn't really matter. The FP push helps a lot already (map,filter,streamfusion instead of crazy for/while statements).
by agumonkey 12y ago
The mainstream may realize how syntax doesn't really matter. The FP push helps a lot already (map,filter,streamfusion instead of crazy for/while statements).
- AnimalMuppet 12y agoWhy do you call for and while statements "crazy"? Because it's possible to write them wrong? Because you think it's crazy to have to write them at all? Why?
- agumonkey 12y ago> it's possible to write them wrong too easy languages to conflate a lot of logic into large side effectful statements. FP forces you to separate layers, and deforestation (when available) helps reclaiming space/time costs.
- AnimalMuppet 12y agoAll right, but "can be misused" is not the same as "crazy".
- agumonkey 12y agoAlright, that was my own misunderstanding of loop invariants and scope showing. That gave opportunity for traumas when I started reading imperative code.
- spacemanmatt 12y agoSeems fair to assume pp calls them crazy because they don't compose.