-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Pattern Matching but also Entire Result #363
Comments
Does this achieve what you're asking for? |
That is nice too. It is not exactly what I had in mind, because it does not operate in a single assignment expression and because it would be difficult to work into the formal parameters. |
I think that Tesco has a solid answer ... that a series of partial matches is a fine way to accomplish this without adding a new symbol to the current syntax. And because pattern-matching-in-parameters isn't happening for now (the sister-issue for this, #362), it's less necessary. Closing as a |
|
@mitar use |
It would be nice to be able to specify both a name for the whole value and also the names for the parts of the value in the LHS (or in a formal parameter). Here's sample syntax:
The
@
is the character that Haskell uses for this feature. CoffeeScript should choose the syntax most appropriate for and integrated with the rest of CoffeeScript for this particular feature.The text was updated successfully, but these errors were encountered: