Skip to content

Conversation

forki
Copy link
Contributor

@forki forki commented Apr 13, 2019

No description provided.

if i >= len then failwithf "%s" <| FSComp.SR.forBadPrecision()
match fmt.[i] with
| c when isDigit c -> digitsPrecision (i+1)
| c when System.Char.IsDigit c -> digitsPrecision (i+1)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe, open the namespace instead?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

More often than not we use System.Char.IsDigit in this codebase. It's not clear to me why.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And amusingly @forki's PR does it both ways.

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.

3 participants