haskell-cafe@haskell.org
[Top] [All Lists]

Re: [Haskell-cafe] Language simplicity

Subject: Re: [Haskell-cafe] Language simplicity
From: Michael Hartl
Date: Tue, 12 Jan 2010 23:38:11 +0100
Am Dienstag, den 12.01.2010, 22:22 +0000 schrieb Andrew Coppin:
> Niklas Broberg wrote:
> >> Haskell '98 apparently features 25 reserved words. (Not counting "forall"
> >> and "mdo" and so on, which AFAIK are not in Haskell '98.)
> >>     
> >
> > 21 actually. case, class, data, default, deriving, do, else, if,
> > import, in, infix, infixl, infixr, instance, let, module, newtype, of,
> > then, type, where. There's also three special words that can still be
> > used as identifiers, so aren't reserved: as, qualified, hiding.
> >   
> 
> OK. Well the list I saw was for Haskell plus extensions, and I visually 
> filtered out the inapplicable stuff. Apparently I missed something.
> 
> Also, the number varies depending on whether you consider "reversed 
> words" or "keywords", and I suspect the situation is subtly different 

"reversed words"? There are some in sh for example, namely 'fi' and
'esac', but other than that they are not that common... ;-)

> for each possible language. I was going vaguely for anything that's 
> hard-wired into a language, and not just part of the standard libraries. 
> (E.g., "return" is definitely NOT any kind of reversed word or keyword.)
> 
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe@xxxxxxxxxxx
> http://www.haskell.org/mailman/listinfo/haskell-cafe


_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@xxxxxxxxxxx
http://www.haskell.org/mailman/listinfo/haskell-cafe

<Prev in Thread] Current Thread [Next in Thread>