back

by layer8·5y ago·view on hn ↗
Most popular programming languages have that ability. The problem is that most people don’t know how to enter characters that aren’t on the keyboard and don’t have software installed/configured that makes it easy to do so (e.g. using a Compose key).
1 comments
Ok, good to know. Well, Julia doesn't have those problems – in the REPL, out of the box, type "\pi[TAB]" for the greek letter, etc. And not needing an explicit multiplication sign in some places also makes mathematical code look more like maths, e.g.

    julia> 2π
    6.283185307179586
Same with Emacs if you select the TeX input method: Alt-x set-input-method TeX

\pi → π

That works for any programming language. I’ve used it occasionally for my own programs but use plain ASCII if I expect others to work on the code.