(no title)
ck45
|
4 months ago
But then Ruby only goes half way, not unlike the "watered-down form" in your term. Why is `#times` a method of Integer, but `#if` (or `#ifTrue`) not a method of booleans like in Smalltalk? Ruby does the same cherry picking from Smalltalk like everybody else, just different cherries.
When looking at Ruby, it feels like the simple examples are all nice and clean but then the weird details start to appear and the language feels more hacky than others (like Ned Flander's house in Simpsons S08E08).
chao-|4 months ago
wild_egg|4 months ago
There's no `if` keyword in the language. Control flow is done purely through polymorphism.
codesnik|4 months ago