F#特殊报价? (##) [英] F# special quotes? (##)
问题描述
我刚遇到 http://frankniemeyer.blogspot.com/2010/04/minimalistic-native-64-bit-array.html 其中包含行
I just ran across http://frankniemeyer.blogspot.com/2010/04/minimalistic-native-64-bit-array.html Which contains the line
(# "sizeof !0" type('T) : nativeint #)
我相信技术用语是到底是什么?"在我的F#编程(〜8个月)中,我从未遇到过类似的东西……
I believe the technical phrase is "what the heck?" I have never in my (~8 months) of F# programming run across something even resembling that...
FSI告诉我一些有关过时的构造的信息,这些构造仅用于F#库...
FSI tells me something about deprecated constructs, used only for F# libs...
和Google一起使用(#嗯...嗯,不多
And google with (# does uh...well, not much
这方面有什么方向吗?
推荐答案
这是行内IL发射的表示法.在F#的早期,它曾经是一个更加突出的功能,但是已经过时了.来自F#团队的一位名叫Brian的绅士表示,目前它主要用于引导F#编译器,并且该团队打算将此构造标记为错误,而不仅仅是警告.
This is the notation for inline IL emission. It used to be a more prominent feature during F#'s earlier years, but has been deprecated. A gentleman named Brian from the F# team has indicated that it is currently used mainly to bootstrap the F# compiler, and that the team had intended to mark this construct as an error, not merely a warning.
有关完整的故事,请参见他的帖子此处.
See his post here for the full story.
这篇关于F#特殊报价? (##)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!