[Haskell-cafe] Re: Allowing hyphens in identifiers

Maciej Piechotka uzytkownik2 at gmail.com
Wed Dec 9 04:54:15 EST 2009


On Tue, 2009-12-08 at 10:56 +0100, Deniz Dogan wrote:
> Has there been any serious suggestion or attempt to change the syntax
> of Haskell to allow hyphens in identifiers, much like in Lisp
> languages? E.g. hello-world would be a valid function name.
> 

You mean to parse a - b differently then a-b? You don't have the problem
in LISP as AFAIR you use (- a b) but in Haskell it would be a problem.

About unicode - if something looks the same it should be parsed the
same. I mean - we have already had problem historically with tab vs.
spaces (vide Make).

BTW. You can always use hello_world.

Regards




More information about the Haskell-Cafe mailing list