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

Referring to arguments by name or index #49

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

herbelin
Copy link
Member

First attempt at summarizing the situation about referring to arguments by name or index.

Rendered here.

@silene
Copy link

silene commented Nov 18, 2020

Here is my opinion on some of the choices:

  • Given foo (A := bar) qux, qux is used to fill the first non-implicit argument that occurs after A. All the other arguments up to it are inferred (as if _), except for A obviously. Naming arguments in the wrong order is an error.
  • As with with, an integer position should denote a dependent argument. (What is the actual rule? A dependent argument or an anonymous one?) No need for a syntax other than (3 := bar).
  • No need for (id a := term). It feels too ugly and unintuitive to be worth it.
  • No need for (fun A => A) (A:=nat). I am fine with the syntax being restricted to named symbols.

@herbelin
Copy link
Member Author

As with with, an integer position should denote a dependent argument. (What is the actual rule? A dependent argument or an anonymous one?)

It is a non-dependent argument (which is what you meant I guess).

@silene
Copy link

silene commented Nov 18, 2020

Right. The terminology "(non) dependent" is always confusing me. It would be clearer if it was "non-depended-upon argument", but I guess that would be too much of a mouthful in practice.

@mattam82
Copy link
Member

mattam82 commented Jan 27, 2021

I think we should have a look at the stability criterion developed here: https://richarde.dev/papers/2021/stability/stability.pdf

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

Successfully merging this pull request may close these issues.

3 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy