[Haskell-i18n] unicode notation \uhhhh implementation

Ketil Z. Malde ketil@ii.uib.no
16 Aug 2002 09:46:40 +0200

Ashley Yakeley <ashley@semantic.org> writes:

> Well, if we want to go the Java route and allow full Unicode in=20
> identifiers, it would allow developer A to export Haskell identifiers=20
> with Greek characters from a Greek charset source file, and developer B=20
> to use those identifiers from an ASCII source file.

Personally, I think i'd prefer the identifiers to be renamed to
something more sensible than \uXXXX.  Would it be possible to use
an escape character and the *name* of the glyph/symbol instead?

I'm also not very happy with backslash for escaping (outside of
strings/char constants), since it's used for lambda (somebody pointed
out this and other problems in a previous mail).

        sin :: Float -> Float
        sin =AEtheta =3D sqrt (1-(cos =AEtheta)=B2)

Or something like that?

If I haven't seen further, it is by standing in the footprints of giants