Re:Ruby Blocks
by kikimora on Sunday October 19, 2025 @04:41AM
(#45632838)
In Smalltalk there is no if statement, but there is ifTrue and ifFalse methods in a Boolean variable. This is one example how to create custom control flow with non-local returns and blocks. Ruby follows suite.
[ Parent
| on HN ]
There are no comments on this comment yet.