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

Allow '<expr>.<field>' as an alternative syntax for '#<field> <expr>' #9

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

Comments

@julianhyde
Copy link
Collaborator

Allow '.' as an alternative syntax for '# '. Thus rather than writing '#emps scott' you could write 'scott.emps'.

This syntax is familiar for users of languages such as C, Java, SQL.

Because '.' and function application are both left-associative, it is easier to compose calls. You can write 'emp.address.zipcode' without parentheses, whereas the equivalent in function-oriented syntax would require parentheses, '#zipcode (#address emp)'.

@julianhyde
Copy link
Collaborator Author

Fixed in 268d123.

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