Add `partial` reader macro

Description

One of the most common things one does in functional programming is partial application. Clojure doesn't curry its functions as Haskell does. Instead it offers `partial` and the function macro:

While the function macro is both terse and flexible it doesn't offer the same feel that partial does when it comes to [tacit style](https://en.wikipedia.org/wiki/Tacit_programming). Using `partial` regularly, however, defeats the brevity one would otherwise enjoy in point-free style. Having a `partial` reader macro, while seemingly a small thing, would better lend itself to the tacit style.

Because most functions list arguments from general to specific, I rarely need to use the function macro to place the optional argument in some position other than last – e.g. normal partial application.

Environment

None

Activity

Show:
import
June 28, 2015, 6:08 AM

Comment made by: mlanza

Just wanted to note that others had suggested the same idea albeit using another implementation.

http://stackoverflow.com/questions/18648301/concise-syntax-for-partial-in-clojure

Alex Miller
January 23, 2016, 2:58 AM

I talked to Rich and he's not interested in this change, so declining.

Declined

Assignee

Unassigned

Reporter

import

Approval

None

Patch

None

Priority

Major