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

Acculate closure conversion #15

Open
KeenS opened this issue Apr 1, 2018 · 2 comments
Open

Acculate closure conversion #15

KeenS opened this issue Apr 1, 2018 · 2 comments

Comments

@KeenS
Copy link
Owner

KeenS commented Apr 1, 2018

Idea:
separate function-like, closure and function in type.
Then type driven closure conversion

val f: function-like = if xx then g:  function else h: closure

val f: closure = if xx then force-closure(g):  closure else h: closure

,

val f: function-like = if xx then g:  function else h: function

val f: function = if xx then g:  closure else h: function
@KeenS
Copy link
Owner Author

KeenS commented May 29, 2022

@KeenS
Copy link
Owner Author

KeenS commented May 30, 2022

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