April 8, 2015
10:25 a.m.
Sometimes I use #new thatâs horrible! completely misleading
I'm curious, if it is singleton, should you worry from outside about the fact that it is a singleton? Shouldn't that be hidden from the user?
nope. new means new. you are confusing your user if you send a new message and you receive an already existing (aka not new) object. the literature existing always recommend to use an specific method (usually #instance or #uniqueInstance, in smalltalk.. who decided to use #uniqueInstance as a convention).
Thanks for the explanation; I'm learning every day. :) Peter