POV-Ray : Newsgroups : povray.off-topic : Programming language discussion : Re: Programming language discussion Server Time
4 Sep 2024 01:21:15 EDT (-0400)
  Re: Programming language discussion  
From: Invisible
Date: 28 Oct 2010 11:46:52
Message: <4cc99aec$1@news.povray.org>
>>> I.e., what he's calling "tree" would be "node of a tree" in C.
>
>> Yeah, I should have been clearer about that. A list *node* is a union. A
>> tree *node* is a union.
>
>    What would the harm be if eg. list nodes were structs instead?

Nothing. It's just that in Haskell, you can't implement it that way. 
[Correction: You can't implement *finite* lists that way.] And, with 
unions being a fundamental part of the language, you don't need to.


Post a reply to this message

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