[RFC 1082 Discussion] - uint
type abbreviation for FSharp.Core
#423
Replies: 14 comments
-
The RFC doesn't mention the impact on the cast function. As mentioned in the discussion, I think the let f x: uint = uint32 x Instead of this: let f x: uint = uint x It would also be nice if you could pair the other remaining primitives similarly, but I understand if that should go into a separate suggestion. |
Beta Was this translation helpful? Give feedback.
-
Thanks @abelbraaksma - updating. I don't think we'd do that for the other primitives here, that would be another suggestion. |
Beta Was this translation helpful? Give feedback.
-
PLEASE NO! This is going to be incredibly confusing to have |
Beta Was this translation helpful? Give feedback.
-
PLEASE YES! This is going to be incredibly helpful to write |
Beta Was this translation helpful? Give feedback.
-
Would a type alias not currently work ? |
Beta Was this translation helpful? Give feedback.
-
@davidglassborow it is implemented as a type alias + casting functions in the current design. I wouldn't expect that to differ since that's how |
Beta Was this translation helpful? Give feedback.
-
That would alias the type, not the cast function. |
Beta Was this translation helpful? Give feedback.
-
Hey, personally I'm not a huge fan of the many existing aliases (sbyte/int8/etc.) but when doing this how about short/ushort/long/ulong? |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
I personally find Just to say that I find clarity in the way F# chose the names it did. The only one to remember is |
Beta Was this translation helpful? Give feedback.
-
It's worth noting that there may be some more numeric primitives down the road in .NET. This would probably require corresponding type abbreviations in FSharp.Core. |
Beta Was this translation helpful? Give feedback.
-
I thought I saw an issue about a request for some new primitives like |
Beta Was this translation helpful? Give feedback.
-
I think this can be closed? The implementation is complete: dotnet/fsharp#8185. Note that a comment in the PR specifically says that this doesn't have y wait until F# 5.0, but that this thread is marked for the F# 5.0 milestone. |
Beta Was this translation helpful? Give feedback.
-
@abelbraaksma i'll likely do a round of closing later this year. |
Beta Was this translation helpful? Give feedback.
-
This is the discussion issue for RFC 1082.
RFC: https://github.com/fsharp/fslang-design/blob/master/RFCs/FS-1082-uint-type-abbreviation.md
Suggestion: fsharp/fslang-suggestions#818
Beta Was this translation helpful? Give feedback.
All reactions