Skip to content
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

Partially applied property accesses and method calls? #57

Open
dead-claudia opened this issue Oct 19, 2024 · 0 comments
Open

Partially applied property accesses and method calls? #57

dead-claudia opened this issue Oct 19, 2024 · 0 comments

Comments

@dead-claudia
Copy link

dead-claudia commented Oct 19, 2024

In my experience, these are far and away among the most common types of functions I create. Stuff like items.map(i => i.name) and dates.map(d => d.getTime()). It'd be really nice to have something like items.map(?.name~) or dates.map(?.getTime~()). And maybe extend it to setters via items.forEach(?.name ~= foo), though I'm not holding my breath on that one.

Note: I'm intentionally limiting it to just these two. I'm in no way proposing opening the flood gates to everything - stuff like (a, b) => a + b are very explicitly out of scope.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant