« Return to Thread: Draft SIP: From constructors to factories: Uniform treatment of object creation

Re: Draft SIP: From constructors to factories: Uniform treatment of object creation

by Raoul Duke :: Rate this Message:

Reply to Author | View in Thread

>> Summary: Make it easy to switch from constructors to factories after
>> the fact by adding a mechanism where "new Foo(stuff)" can translate to
>> an invocation of a user defined method on the companion object.

could we instead just try to do away with 'new' pretty please perhaps?

 « Return to Thread: Draft SIP: From constructors to factories: Uniform treatment of object creation