|
![](/i/fill.gif) |
Warp wrote:
> These could, for example, contain different types of data.
> Any operation you do on the data would have to first check that the
> node is of the correct type (if the node is a union).
But you still need to do this, even if it's a struct, unless by "struct" you
mean all the data in every element is always valid, in which case you
wouldn't use a union in Haskell either.
Either you're operating on invalid data, or you're checking if the data is
valid before operating on it. Yes?
--
Darren New, San Diego CA, USA (PST)
Serving Suggestion:
"Don't serve this any more. It's awful."
Post a reply to this message
|
![](/i/fill.gif) |