POV-Ray : Newsgroups : povray.off-topic : Programming language discussion : Re: Programming language discussion Server Time
3 Sep 2024 23:29:17 EDT (-0400)
  Re: Programming language discussion  
From: Darren New
Date: 28 Oct 2010 16:09:37
Message: <4cc9d881@news.povray.org>
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

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.