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

Bring back as_fn() (function-declaration interpreter) #20

Open
egnha opened this issue Dec 7, 2018 · 0 comments
Open

Bring back as_fn() (function-declaration interpreter) #20

egnha opened this issue Dec 7, 2018 · 0 comments

Comments

@egnha
Copy link
Owner

egnha commented Dec 7, 2018

Bring back as_fn(), in modified form:

as_fn(x, y, ... ~ body)  # fn(x, y, ... ~ body)
as_fn(~ foo(.))          # fn(. ~ foo(.))
as_fn(..f = foo)         # foo
as_fn(..f = "foo")       # match.fun("foo")

(Backport to nofrills?)

@egnha egnha changed the title Bring back as_fn() (function-formula interpreter) Bring back as_fn() (function-declaration interpreter) Dec 7, 2018
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