The bad thing about existing nominally typed OO PLs is that you can't post-hoc let a class implement an interface. If you could add new methods to any class, and then declare that the class now implements a new interface, you'd get the practical benefits of structural typing.
-
-
so that there's a single notion of type, that can be used e.g. as a generic type parameter.
-
I invite you to use interface-passing style rather than cl:typep, especially if you're going to pass types as parameters. But if you are emotionally attached to cl:typep, use the CLOS MOP.
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
Read my blog!