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

Remove apply_closure from semantics #56

Open
hrutvik opened this issue Jul 6, 2023 · 0 comments
Open

Remove apply_closure from semantics #56

hrutvik opened this issue Jul 6, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@hrutvik
Copy link
Collaborator

hrutvik commented Jul 6, 2023

PureLang, ThunkLang, and EnvLang all use a function called apply_closure in their semantics. With the changes from #31, this seems unnecessary - apply_closure should instead be replaced by straightforward function application. This should simplify various proofs, particularly in ThunkLang where removing lemmas concerning apply_closure will likely streamline things.

Care needs to be taken for Ret/Raise in ThunkLang/EnvLang - these are now call-by-value, i.e. they evaluate the contained argument no matter what. This is achieved by a combination of with_value/apply_closure currently.

@hrutvik hrutvik added the enhancement New feature or request label Jul 6, 2023
@hrutvik hrutvik added this to the Refactoring and clean-up milestone Jul 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant