You're welcome, xap!  

One of the "thought exercises" that Stef likes to have Pharo students engage
in is to come up with your own design for implementing something like 'or:'
in Pharo code.

And then, afterwards, to examine how the Boolean class and its two
subclasses, True and False, are implemented.  Most people are surprised by
what they find!  Smalltalk is often extremely elegant in its implementation.

Sven wrote a nice Medium essay on just this:
https://medium.com/concerning-pharo/tiny-yet-so-beautiful-1ef5149c910e

(And as the source code you read points out, these are not actually
implemented in Pharo source; they're implemented in the virtual machine, at
a low level, so they can be highly optimized for good performance.)

-t



--
Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html

Reply via email to