|
|
On 8/14/2012 3:17, clipka wrote:
> If you want to give such guarantees, you can't handle variables of types for
> which you have no declaration, because obviously you can't tell whether they
> can do A, B, C and D or not.
To be fair, I suspect Haskell just treats that declaration as if you're
returning Object in C#. In other words, haskell I suspect doesn't let you
return a value whose type you can't see, but instead of making that illegal,
it essentially inserts a cast for you to an opaque supertype. (So to speak,
of course, since Haskell isn't OO.)
--
Darren New, San Diego CA, USA (PST)
"Oh no! We're out of code juice!"
"Don't panic. There's beans and filters
in the cabinet."
Post a reply to this message
|
|