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

Named partial application shouldn't be sensitive to argument order #3145

Open
lukaszcz opened this issue Nov 5, 2024 · 1 comment
Open
Milestone

Comments

@lukaszcz
Copy link
Collaborator

lukaszcz commented Nov 5, 2024

Typechecking

module papp;

import Stdlib.Prelude open;

f (x y : Nat) : Nat := x + y;

g : Nat -> Nat := f@?{y := 1};

gives the error

/Users/heliax/Documents/progs/juvix/papp.juvix:7:19-24: error:
Missing arguments in named application:
• x

Instead, f@?{y := 1} should be desugared to a lambda-abstraction:

\{x := f x 1}
@lukaszcz lukaszcz added this to the 0.6.8 milestone Nov 5, 2024
@paulcadman paulcadman modified the milestones: 0.6.8, 0.6.9 Nov 11, 2024
@lukaszcz
Copy link
Collaborator Author

I think we agreed to remove the @? syntax.

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

No branches or pull requests

2 participants