F# special quotes? (##)

后端 未结 3 1773
一向
一向 2021-01-02 01:02

I just ran across http://frankniemeyer.blogspot.com/2010/04/minimalistic-native-64-bit-array.html Which contains the line

(# \"sizeof !0\" type(\'T) : native         


        
3条回答
  •  长情又很酷
    2021-01-02 01:34

    It's inline IL (intermediate language) code. This construct is used internally by the F# team to implement bits of the F# core library you just can't do any other way. This code will admit a warning saying it shouldn't be used any where other than the F# core libraries, so you probably don't have to worry about it too much as it should never appear in production code.

提交回复
热议问题