Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Add `uint` type abbreviation to FSharp.Core #818
Title of Suggestion
I propose we add the following type abbreviation:
type uint = uint32
The existing way of approaching this problem in F# is to:
Pros and Cons
The advantages of making this adjustment to F# are:
The disadvantages of making this adjustment to F# are that it's work.
Estimated cost (XS, S, M, L, XL, XXL): XS
Affidavit (please submit!)
Please tick this by placing a cross in the box:
Please tick all that apply:
Considering that C# also has
Note that the F# cheatsheet already assumed that
Apart from the type abbreviation, for parity, I suggest we also allow the type-cast function
Btw, while we're at it, we have aliases for
And it's just simpler typing without those digits ;).
Funny, even the F# error messages assume
And another aside, apparently this idea is not new (incl.
And this is probably a bug, currently (but would magically be solved after this is in): https://github.com/dotnet/fsharp/blob/359b9c1c5eced4ebda24705d29ea99d098d27b87/src/utils/sformat.fs#L147
All the more reason to support this