tc39 / proposal-partial-application

Proposal to add partial application to ECMAScript
https://tc39.es/proposal-partial-application/
BSD 3-Clause "New" or "Revised" License
1.02k stars 25 forks source link

Prior art/reference: `param.macro` #8

Closed haltcase closed 5 years ago

haltcase commented 7 years ago

param.macro is a near-syntax level Babel plugin for partial application (and lambda parameters) that's roughly modeled after this proposal. You may want to read the introductory post and check out the online playground at https://param-macro.netlify.com.

I thought it might be useful as an approximation while the proposal works its way into Babel and beyond.

import { _ } from 'param.macro'
const add = (x, y) => x + y
const addOne = add(_, 1)
addOne(9)
// -> 10
rbuckton commented 5 years ago

I do not believe this would sufficiently warrant a reference as prior art unless this project sees significant usage within the community.