r/ObjectiveC • u/whackylabs • Mar 10 '20
Subclass Factory Pattern
https://whackylabs.com/objc/design-pattern/2020/03/09/objc-builder-pattern/
10
Upvotes
r/ObjectiveC • u/whackylabs • Mar 10 '20
View all comments
Show parent comment
1
u/[deleted] Mar 11 '20
I did show you.
Look at the Smalltalk version (which doesn't have square brackets around message sends and instead uses ; to mean send message to last message receiver.
Also, IME, 99% of Java developers will define setFoo as returning void. It is unfortunate but that's the culture. They don't know anything about real OO design.