RE: [Haskell-i18n] unicode notation \uhhhh implementation

At 2002-08-15 10:02, Sven Moritz Hallberg wrote:
What reason would one have to use Unicode characters outside of string and character literals? The only one I could see would be to have prettier code. I'm personally itching for real greek letters in my code, even if only a handful of other people could read the file, ATM.
But what's the point of it if you can't deal with the characters yourself, having to use escape sequences. The compiler surely couldn't care less about it.
Well, if we want to go the Java route and allow full Unicode in identifiers, it would allow developer A to export Haskell identifiers with Greek characters from a Greek charset source file, and developer B to use those identifiers from an ASCII source file. -- Ashley Yakeley, Seattle WA

Ashley Yakeley
Well, if we want to go the Java route and allow full Unicode in identifiers, it would allow developer A to export Haskell identifiers with Greek characters from a Greek charset source file, and developer B 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 ®theta = sqrt (1-(cos ®theta)²) Or something like that? -kzm -- If I haven't seen further, it is by standing in the footprints of giants
participants (2)
-
Ashley Yakeley
-
ketil@ii.uib.no