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

Partially applied constructors #51

Closed dead-claudia closed 3 years ago

dead-claudia commented 3 years ago

I've plenty of times wanted to do things like .map(foo => new Wrapper(foo, ...)), and that would be an easy thing to fold into this proposal as it's essentially just a small variation on function calling.

ljharb commented 3 years ago

It’s already in the proposal; but we’re discussing in #11 how I don’t think it’s a compelling use case.

dead-claudia commented 3 years ago

Okay, I'll close this in favor of that, then.