Jaaved Ali Khan

21%
Flag icon
VisualWorks has taken the valuable step of separating these two uses of object-to-string conversion. If you want a client-consumable string, you send “displayString.” If you want a programmer-consumable string, you send “printString.” For Smalltalks with a single message for printing, you need to choose which audience you will address.
Jaaved Ali Khan
analogy: Python __repr__ __str__ Smalltalk printString displayString
Smalltalk Best Practice Patterns
Rate this book
Clear rating
Open Preview