Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Aliasing comp as º and partial as ¬ in clojure

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?

like image 981
jneira Avatar asked Aug 27 '10 06:08

jneira


1 Answers

As a rule of thumb, I would be very hesitant to invent new names for already-named established concepts.

like image 71
Svante Avatar answered Sep 18 '22 05:09

Svante