且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何F#度量单位的工作?

更新时间:2023-11-10 08:23:04

据response在下一个相关的博客文章,他们在F#编译器纯静态机制。因此,有单位的数据没有CLR重新presentation。

According to a response on the next related blog post, they are a purely static mechanism in the F# compiler. So there is no CLR representation of the units data.

它并不完全清楚其当前是否适用于非浮型,但是从类型系统的角度看,它在理论上是可能的。

Its not entirely clear whether it currently works with non-float types, but from the perspective of the type system it is theoretically possible.