3 ms·
> it would certainly be interesting to program in a language where conforming to a protocol (perhaps one that nobody had thought up yet when you wrote your clas
by pid-1 3y ago
> it would certainly be interesting to program in a language where conforming to a protocol (perhaps one that nobody had thought up yet when you wrote your class)
Not automatic, but you could use a decorator + the protocol as type annotation, I think