I prefer not to use non-ASCII characters in the code (outside of string / character literals and comments). How about making your editor outperform the code for you when it is displayed, but not when you save it? For instance. the following function will cause Emacs to display compas ∘(the actual character of the composition of the function):
(defun pretty-comp ()
(font-lock-add-keywords
nil `(("\\<\\(comp\\)\\>"
(0 (progn (compose-region (match-beginning 1)
(match-end 1)
?∘)
nil))))))
Apparently, it is not perfect - it seems that it distorts the display compfoo, etc., but you can configure it to work.
source
share