3 ms·
Interesting, didn't know about single-method-interfaces. There are lots of singletons in OO. I find it useful to add static metadata (not state) to them, witho
by grumblingdev 3y ago
Interesting, didn't know about single-method-interfaces.
There are lots of singletons in OO. I find it useful to add static metadata (not state) to them, without having to escalate them to a class. I guess Java has decorators for the same purpose. I'd really like decorators for functions in TypeScript though.