-
Notifications
You must be signed in to change notification settings - Fork 301
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
Shorthand syntax for static member no longer works #3675
Comments
This short syntax doesn't actually compile on (Although, confusingly, it is unclear why omitting Looks like there was a regression that allowed it to compile on We could revert this fix for Fable until it shows up in an officially released version of F# (other than |
Thank you for the detailed explanation. This is a tricky decision, I think we should wait to see what the F# team answer to your comment on their issue. And follow their decision. |
IMO, we shouldn't modify the compiler or language, if not through a suggestion for such important syntax adjustment. I feel the argument for making The code which is wrong for all version of F# but version 7 (because nobody reported the issue before) can probably be adjusted with less efforts, despite it is unwelcome surprise, or "breaking". At least, I'll not let guilt come in my vicinity for having reported the issue, while having compassion for those that liked the Adjusting the release notes of Fable mentioning that for now, the adjustment is necessary, and pointers to the issue for tracking the status seems to be the best action to take now, so people won't complain of breaking change that isn't described in the release notes. |
Absolutely, but given that the problem is already there in both latest released .NET 7.0 and .NET 8.0, it could be a valid option to rollback the fix temporarily in Fable until it is officially released upstream. But I agree with all your points, we could also update the Fable release notes to mention it. |
I believe version 8 is also impacted. But yes, I agree that the "correct code" right now, is to use |
Related to #3752 |
Description
The shorthand syntax for static (
static Origin = { x=0; y=0 }
vsstatic member Origin ...
) no longer works. This is a breaking change and breaks a lot of our code that relies on this terser syntax.Repro code
Expected and actual results
It should parse just like:
Related information
The text was updated successfully, but these errors were encountered: