4 ms·
Killing Primitive Loops and Conditionals
- messel 16y agoGroovy, helped me learn something about conditionals without the extra syntax for brevity. I'm partial to iterators that look like "for each" for loops. You say recursion, I say tomato.
- wake_up_sticky 16y agoLooks like Smalltalk.
- ambulatorybird 16y agoLooks like the object-oriented version of what's possible in the lambda calculus: true = lambda(x,y) -> x false = lambda(x,y) -> y if = lambda(pred,then,else) -> pred(then,else)
- mayoff 16y agoHis while can be written more concisely, I think: Ether :: while: condition do: block { if: condition call then: { block call while: condition do: block } }