Allen Wirfs-Brock (2014-06-16T16:47:49.000Z)
domenic at domenicdenicola.com (2014-06-20T19:39:06.760Z)
On Jun 15, 2014, at 11:45 PM, Tom Van Cutsem wrote: > Smalltalk has both extension points (#new and #initialize). I think JS programmers could handle this just as well. and #basicNew. It seeded to me that many Smalltalk programmer were unclear about when to over-ride #new vs when to over-ride #basicNew. > In any case, I believe you're probably right that @@create + constructor invocation is sufficient for most use cases. The crucial step is that if the constructor returns an object, this is the object returned by |new C(...args)|. This way, the constructor can always return a cached object and ignore whatever dummy object was created by @@create. Correct? right.