character syntax

Jesper Louis Andersen
Thu, 7 Feb 2002 17:24:53 +0100

On Thu, Feb 07, 2002 at 08:00:36AM -0800, Ian Zimmerman wrote:
> I am new to the language (coming from ML) and I am sorry if my first
> post turns out to be a flamebait, but I can't help it:
> Why in the world did the designers of Haskell permit the ' character
> to be both a prime (part of identifiers) and the single-character
> quote?  Didn't they realize what they were doing to would-be
> intelligent editors?  Or were they just a bunch of rabid ed users?

In standard ML:

  - fun f' x = x + 1;
  > val f' = fn : int -> int

And as far as I see, vim handles that kind of syntax perfectly. I do not
find the allowance disturbing, rather neat (I tend to augment helper
functions with the ').