I missed a short syntax to express fundamental operations over functions in Clojure. Because of that, I started to use º as a shorthand for comp (cause it’s closer to the math operator but easily accessible) and ¬ for partial (because reminds me of missing parameters).
What are your thoughts about this? is it useful or does it have the risk of making code confusing?
I prefer not to use non-ASCII characters in code (outside of string / character literals and comments). How about having your editor prettify the code for you when it’s displayed, but not when saving it? E.g. the following function will cause Emacs to display
compas∘(the actual function composition symbol):Apparently it’s not perfect — it seems to mangle the display of
compfooetc. — but you might be able to tweak it to work for you.