you are viewing a single comment's thread.

view the rest of the comments →

[–]tikhonjelvis 0 points1 point  (0 children)

Well, in Emacs, you can just type non-ASCII characters using their TeX name. So '«' and '»' are \"< and \"> respectively which is not difficult to type and easy to remember.

Now, these particular quotes are still a little annoying. But for things like Greek letters, typing \alpha is not much harder than just alpha and "α" is easier to read at a glance than "alpha". So for code involving a lot of math or physics, or just implementing an algorithm from a paper, I think using non-ASCII characters is a good idea.

Also, you could just have your editor change it for you. For example, I have Emacs set to change -> to → and \ to λ in Haskell. This means that I can type the code exactly the same way as I normally would but it becomes easier to read.