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

Change syntax of implicit parameters and arguments #63

Closed
fmease opened this issue Feb 1, 2021 · 1 comment
Closed

Change syntax of implicit parameters and arguments #63

fmease opened this issue Feb 1, 2021 · 1 comment
Labels
A-syntax Area: Syntax

Comments

@fmease
Copy link
Owner

fmease commented Feb 1, 2021

For reference, implicits today look like:

identity (,A: Type) (a: A): A = a
identity2: (,A: Type) -> A -> A = identity
identity3: (,A: Type) -> A -> A = \(,A) a => a
x: Nat = identity (,Nat) 0
y: List Int = identity (,List Int) [-1 0 1]
identity4 (,let A: Type) (a: A): A = a
z: Nat = identity (,A = Nat) 1

That does not look immensely aesthetically pleasing to my eyes. Change it to:

identity '(A: Type) (a: A): A = a
identity2: '(A: Type) -> A -> A = identity
identity3: '(A: Type) -> A -> A = \'A a => a
x: Nat = identity 'Nat 0
y: List Int = identity '(List Int) [-1 0 1]
identity4 '(let A: Type) (a: A): A = a
z: Nat = identity '(A = Nat) 1
@fmease fmease added A-syntax Area: Syntax design Open design questions that need to be solved and removed design Open design questions that need to be solved labels Feb 1, 2021
@fmease
Copy link
Owner Author

fmease commented Mar 2, 2021

Fixed in 6ca9cf1.

@fmease fmease closed this as completed Mar 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-syntax Area: Syntax
Projects
None yet
Development

No branches or pull requests

1 participant