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

Rethink lambdas, datums, etc #120

Open
dvanhorn opened this issue Dec 2, 2022 · 2 comments
Open

Rethink lambdas, datums, etc #120

dvanhorn opened this issue Dec 2, 2022 · 2 comments

Comments

@dvanhorn
Copy link
Member

dvanhorn commented Dec 2, 2022

Starting with Loot the compiler should either return multiple values or a more structured result than just an Asm sequence so that compilation can be a single pass. The code would be more efficient and clearer and eliminate the functions that scan over a program and produce certain subexpressions (e.g. lambdas, datums).

@laelath
Copy link

laelath commented Dec 2, 2022

so I was thinking about it, and I don't think there's any reason why the body of the lambda can't be put inline with the lambda creation site, as long as the creation path jumps around it. I won't deny that this feels pretty ugly though.

@laelath
Copy link

laelath commented Jan 4, 2023

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

2 participants