-
Notifications
You must be signed in to change notification settings - Fork 21
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
Wildcard self identifiers #333
Comments
I’m marking this as approved in principle for F# 4.×. you are invited to submit a quality and tested implementation would be needed, to be submitted to http://github.com/Microsoft/visualfsharp. FWIW I’ve actually taken a look at this once or twice and it was surprisingly invasive to implement. But by all means give it a go and ask if you need help. Don Syme BDFL F# Language/Core Library Evolution |
@dsyme does this require an RFC? |
@Regent In theory an RFC is required but it can be ultra short unless you discover corner-cases in the implementation For implementation - starting with this:
and compiling using So, the first thing to start is to add
or something like that. One possible problem is that this use of
If so that would be trickier to resolve |
I tried adding the rule @dsyme suggested at the top level position of CC @cartermp |
@gusty This is syntax I’ve wanted since 2007 🤪 |
Yes, me too, long time. It's all green already, either it was easier than what we thought, or a failing test is missing. |
Closing as this is in for F# 4.7 |
Submitted by Daniel Robinson on 9/29/2014 12:00:00 AM
9 votes on UserVoice prior to migration
Two underscores are frequently used in member definitions to denote an ignored "self" identifier. This seems like a hack given that the language already provides a wildcard pattern that represents an unused value.
Original UserVoice Submission
Archived Uservoice Comments
The text was updated successfully, but these errors were encountered: