POV-Ray : Newsgroups : povray.off-topic : Programming language discussion : Re: Programming language discussion Server Time
4 Sep 2024 01:14:24 EDT (-0400)
  Re: Programming language discussion  
From: Invisible
Date: 26 Oct 2010 10:26:57
Message: <4cc6e531$1@news.povray.org>
On 26/10/2010 02:59 PM, Mike Raiford wrote:

> As they call it, Syntactic sugar.

Depends on your language.

In an object-oriented language, you generally don't need it, since 
anything declared to be of class X can actually be of class X *or* any 
subclass thereof.

In Haskell, "unions" are a fundamental part of the language. One of the 
fundamental branching primitives is based on them. Nullable fields use 
unions, lists are unions, trees are unions, just about everything ends 
up being a union. [Insert witty Thatcher jokes here.]


Post a reply to this message

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