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

Implicit labels in record expressions #10

Closed
julianhyde opened this issue Jan 23, 2020 · 1 comment
Closed

Implicit labels in record expressions #10

julianhyde opened this issue Jan 23, 2020 · 1 comment

Comments

@julianhyde
Copy link
Collaborator

As an extension to standard ML, deduce implicit labels in record expressions.

In standard ML, every field in a record expression must have a label 'label = expression'.
With this change, an expression has an implicit label if it is an identifier, an application of a label to an expression, or a field reference (see #9). Thus,

{d, #deptno e, e.salary, three = 1 + 2}

is shorthand for

{d = d, deptno = #deptno e, salary = e.salary, three = 1 + 2}
@julianhyde
Copy link
Collaborator Author

julianhyde commented Jan 23, 2020

Fixed in b311d20.

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

No branches or pull requests

1 participant