POV-Ray : Newsgroups : povray.off-topic : Gah... : Re: Gah... Server Time
4 Sep 2024 01:16:58 EDT (-0400)
  Re: Gah...  
From: Invisible
Date: 24 Sep 2010 10:28:14
Message: <4c9cb57e@news.povray.org>
On 24/09/2010 01:29 PM, Mike Raiford wrote:

> As a fun aside... apparently C# will accept any
> non-number/non-punctuator as a valid variable name.

That's nothing. In Haskell, you can use punctuation *as well*!

More precisely, you can use names consisting only of punctuation, which 
then become infix operators. Or you can use names beginning with a 
letter and then continuing with any character except for a rather small 
set of standard ASCII characters considered to be "punctuation" as per 
the Haskell Language Report [*not* as per Unicode].

Some folks like to do things like define a function composition operator 
who's name is the *actual* Unicode code-point for the function 
composition operator. (These same people tend to use "λ" in place of "\" 
too, which is allowed by the syntax rules...)

Amusingly, you cannot define a Γ function in Haskell, because Γ is an 
uppercase letter. You can, however, define a γ function if you like...


Post a reply to this message

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