AI-powered
podcast player
Listen to all your favourite podcasts with AI-powered features
Type Classes and Conformability
type classes are a restricted form of ad hoc polymorphism. They still have to be like uniform. It's not, you know, the sort of, I don't know, let's say holy grail of ad hoc,. Ad hoc polymorphism would be closer to like templates in C++. So can you still do broadcasting or what we'd call an array language is, well, conformability or leading access agreement with plus? If you have arrays of different ranks, can it add them together according to some rule? Yeah, that is a very good question. And the answer is no. You have to because the plus is always takes two As and returns something. Both sides have to