-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Need a pretty "apply" #11
Comments
what about the left arrow symbol |
I like How about this: The association should really be with Clojure's version of "spread", the ampersand |
|
I'd be curious about what other Clojure programmers prefer. Alpha (∝) is good. I guess my favorite is ⅋, because apply inserts a list of trailing function arguments, while & destructures a list of trailing function parameters. |
I think the apply function is a natural candidate to be replaced by a pretty symbol. It is a higher-order function that one often uses to shape the structure of code, like partial or comp. Consider that many Clojure functions are variadic, yet are often needed to operate on a collection: concat, +, str, distinct?, etc. The use of apply is so common, you eventually think of it as just a different way of calling a function, like Python's
*
(splice), or JS2015's...
(spread) operator.May I suggest the ellipsis symbol
…
. That's Option-; on a Mac.The text was updated successfully, but these errors were encountered: