Feb. 13, 2019
2:30 p.m.
Marcus Denker <marcus.denker@inria.fr> writes:
It is amazing how much better this feels now that Traits can define state, too⦠(compared to before where it was just methods).
https://github.com/khinsen/SingletonTrait/blob/master/SingletonTrait/Singlet...
I would even want to have (and use) a Trait like that in the system by default.
That's what I thought as well when I saw the 43 implementors of uniqueInstance in Pharo. I'll package this as a pull request for Pharo! Konrad.