Skip to content
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

Format specifiers galore #20

Merged
merged 26 commits into from
Jul 6, 2023
Merged

Format specifiers galore #20

merged 26 commits into from
Jul 6, 2023

Conversation

jwosty
Copy link
Owner

@jwosty jwosty commented Jun 28, 2023

@jwosty jwosty merged commit 1855edf into master Jul 6, 2023
@jwosty
Copy link
Owner Author

jwosty commented Jul 8, 2023

Printf-style format specifiers, are supported via translation to an equivalent .NET-style format strings when possible1. This ensures that the original object, as well as the formatted value, is preserved.

.NET-style format strings are supported in the same way as regular Log calls, by just passing them through.

Footnotes

  1. Left-justification combined with padding with 0 (for example "%0-10.1f is not possible to represent with a .NET format string. Behavior around printing -0.0 (negative zero float values) may not be as expected, due to both .NET and FSharp.Core bugs.

@jwosty jwosty deleted the net-format-specifiers branch September 14, 2023 20:10
@jwosty jwosty restored the net-format-specifiers branch September 14, 2023 20:10
@jwosty jwosty deleted the net-format-specifiers branch October 27, 2023 19:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant