3 ms·
Where can I read more on F# unboxed types? My searches are only turning up examples of unboxed primitives. Where's the equivalent to https://hackage-content.h
by mrkeen 1y ago
Where can I read more on F# unboxed types? My searches are only turning up examples of unboxed primitives.
Where's the equivalent to https://hackage-content.haskell.org/package/vector-0.13.2.0/docs/Data-Vector-Storable.html https://hackage-content.haskell.org/package/vector-0.13.2.0/... ?
- DeathArrow 1y agoIn .NET the unboxed types are value types and boxed types are reference types. And you can box and unbox them.
- debugnik 1y agoF# uses the CLR term "value types" instead, or sometimes "struct" types as in the C# keyword. These are usually defined with the [<Struct>] attribute over a regular type definition, or using the struct keyword before tuple/anonymous record types. Also, the original 'T option type now has a value-type successor 'T voption.