-
Notifications
You must be signed in to change notification settings - Fork 803
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
F# Interactive displays enums unnecessarily verbosely. #12127
Comments
I personally find the additional information useful, maybe it could pretty printed while retaining the actual value, keeping how |
This should be fixed, we don't intend to show |
@dsyme, if I change the pattern matching by adding the enum type check, can maybe I resolve the problem? fsharp/src/fsharp/utils/sformat.fs Lines 1247 to 1272 in c50b294
| :? Enum ->
countNodes 1
Layout.objL obj |
Yes! :) |
On .NET 6 SDK Preview 7, .NET SDK 5.0.400 and .NET Core SDK 3.1.412, writing something like
will display
while it could display
I persume it is a side-effect of #5002. It does not happen when using
sprintf "%A"
.The text was updated successfully, but these errors were encountered: