|
 |
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
|
 |