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

tentative pipe syntax #2342 #2620

Merged
merged 1 commit into from Mar 14, 2018
Merged

tentative pipe syntax #2342 #2620

merged 1 commit into from Mar 14, 2018

Conversation

bobzhang
Copy link
Member

@bobzhang bobzhang commented Mar 13, 2018

Note we only implement part of the proposal(#2342) in this PR:

x |. f --> f x 
x |. f a0 a1 --> f x a0 a1 
x |. f ~h:a0 a1 -> f x ~h:a0 a1 

Currently, the [@bs] will result in an unused attribute in such cases:

x |. f [@bs]
x |. f a0 a1 [@bs]

To keep things simple, we simply warn when in x |. f [@attrs], attirs is not empty, otherwise

  • if we carry such attrs while not process it, (a warning produced but not idempotent)
  • process again --> complicated not obvious benefit?

@bobzhang
Copy link
Member Author

TODO: prohibit let (|.) a b = ... like what we did for ##+ , env.ml 1350

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.

None yet

1 participant