Arc Forumnew | comments | leaders | submitlogin
1 point by rocketnia 5110 days ago | link | parent

Hmm, I wonder if you're getting Pauan and me mixed up. >.> I'm against 'isa and 'type almost altogether, but I think Pauan considers 'type to be part of the high-level interface of a value:

  (type my-alist)   -> cons


1 point by Pauan 5110 days ago | link

I consider it to be a part of an interface. If we're using duck typing (which I recommend), what happens when two functions define different behavior, but with the same names? All sorts of subtle bugs ensue. But by leveraging the type mechanism, we can group these differing behaviors into interfaces, avoiding the problem completely.

-----