[Pharo-dev] SuffixConditionals

Sean P. DeNigris sean at clipperadams.com
Wed Apr 30 08:29:09 EDT 2014

Torsten Bergmann wrote
> SuffixConditionals adds #if: and #unless methods to BlockClosure.
> Currently in VisualWorks but can be ported to other Smalltalks (like
> Pharo) as well.

Good idea! It is MIT and would be a great bridge for a Ruby community in the
spirit of
Q: ifTrue: and ifFalse: look weird to me. Why can't I have more readable
control flow statements like Ruby?
A: You can! Simply load SuffixConditionals from the Configuration Browser
and you can write things like:
    [process stop] if: process isRunning
    [process start] unless: process isRunning

Also would be a great answer when this inevitably comes up in the endless
"why isn't Smalltalk as popular as Ruby" conversations

View this message in context: http://forum.world.st/SuffixConditionals-tp4757183p4757212.html
Sent from the Pharo Smalltalk Developers mailing list archive at Nabble.com.

More information about the Pharo-dev mailing list