Discussion on boilerplate for code tightly bound to OOP
Michał Kłeczek
michal at kleczek.org
Thu May 12 13:12:31 UTC 2022
>
> - A better way to define singletons. Right now, "singleton" is just a pattern; Scala, for example, raises this to a language feature ("object Foo { }").
I’ve always found metaclasses idea from Erik Allen’s et. al. paper intriguing in this regard:
https://www.cs.tufts.edu/~nr/cs257/archive/neal-glew/mcrt/Fortress/p109-allen.pdf <https://www.cs.tufts.edu/~nr/cs257/archive/neal-glew/mcrt/Fortress/p109-allen.pdf>
More information about the amber-dev
mailing list