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

Consistent named application syntax #3054

Open
heueristik opened this issue Sep 20, 2024 · 0 comments
Open

Consistent named application syntax #3054

heueristik opened this issue Sep 20, 2024 · 0 comments

Comments

@heueristik
Copy link

heueristik commented Sep 20, 2024

Request: Allow consistent use of the named syntax.

Context:
I defined named function arguments in a trait and the instance

trait
type AdditivelyHomomorphic T := mkAdditivelyHomomorphic {add : (v1 : T) -> (v2 : T) -> T};

Property-AdditivelyHomomorphic
  {T} {{Eq T}} {{AdditivelyHomomorphic T}} (f : T -> T) (v1 v2 : T) : Bool :=
  f (AdditivelyHomomorphic.add v1 v2) == AdditivelyHomomorphic.add (f v1) (f v2);

but couldn't use the named application syntax afterwards. When trying, I got an The identifier AdditivelyHomomorphic.add does not have a type signature with named arguments Error.

Bildschirmfoto 2024-09-20 um 15 18 46

Steps to reproduce:

  1. clone and install deps of https://github.com/anoma/juvix-arm-specs
  2. Go to Anoma/Transaction/Types.juvix#L33-L38 and try to use the named syntax.
@heueristik heueristik added enhancement New feature or request pending-review labels Sep 20, 2024
@janmasrovira janmasrovira added bug and removed enhancement New feature or request labels Sep 24, 2024
@janmasrovira janmasrovira self-assigned this Sep 24, 2024
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