2 ms·
Yeah, I'd like to see more languages using unicode identifiers. Seems to be a very unpopular approach, though :(
by anon_d 13y ago
Yeah, I'd like to see more languages using unicode identifiers. Seems to be a very unpopular approach, though :(
- tikhonj 13y agoHaskell can do it: there's a library with common Unicode operators[1] (including ∘ for function composition) and an extension allowing you to use Unicode syntax[2] (things like → in place of ->). I've seen these things used, but they're not super common. People still worry about not being able to input Unicode symbols in their editor! I personally think this is absurd in this day and age. Naturally, it's very easy to do in Emacs; somebody even wrote a Haskell input mode[3]. [1]: http://hackage.haskell.org/package/base-unicode-symbols-0.2.2.4/docs/Prelude-Unicode.html http://hackage.haskell.org/package/base-unicode-symbols-0.2.... [2]: http://www.haskell.org/ghc/docs/7.2.1/html/users_guide/syntax-extns.html http://www.haskell.org/ghc/docs/7.2.1/html/users_guide/synta... [3]: https://github.com/roelvandijk/emacs-haskell-unicode-input-method https://github.com/roelvandijk/emacs-haskell-unicode-input-m...
- anon_d 13y agoOh, nice! I setup XCompose to support rfc1345, so I have fast unicode input everywhere. I'm definitely going to experiment with that Haskell extension. I've done that manually before in ML with a preprocessor, but it was a nasty hack. A proper extension is much nicer! EDIT: How many people still have trouble with Unicode input? Should I publish my XCompose solution?