-
Notifications
You must be signed in to change notification settings - Fork 119
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
Pipeline operator support #125
Comments
Issue-Label Bot is automatically applying the label Links: app homepage, dashboard and code for this bot. |
As of April 2022, the proposal for the pipeline operator The only uncertainty is about the |
In my opinion, we should wait until proposals are finished before adding them here, unless there's significant evidence that they're very widely used. There's a lot of syntax changes in stage 2 that seem pretty likely to change before they ever gain widespread adoption: tuples, module blocks, records, and throw expressions. How do you think pipeline expressions compare to all of these other things? To be fair, we already did add decorators, even though they're only at stage 3. So I'm not exactly sure what our policy should be. @mjambon What policy do you think makes the most practical sense, as a general approach? |
Our general approach I think has been how many complaints we get about a parsing error :) especially whether those complaints come from paying customers. |
@maxbrunsfeld sorry for the late reply. Here's what @nmote said in a private conversation:
So I think it boils down to how confident we are that the proposal is going to stick. A threshold of 80%+ confidence seems about right, meaning we'll have to change our implementation later in 1 case out of 5. Changing syntax later is not really a problem for Semgrep. Would it be a problem for other users of tree-sitter? |
That makes sense. I want this parser to be useful to people, and if Semgrep is getting complaints from customers who are using the pipeline operator in their codebases, then that's a good signal that many people are using this feature. Let's add it! Thanks for calling out this issue @mjambon. |
Any update on this? |
I realize that pipeline operator is still experimental at this stage and understand if we don't plan to support it in the short term. But if I'd like to parse code that uses
|>
without error, is there an easy way to modify the source to do it? Thanks in advance!The text was updated successfully, but these errors were encountered: