F# 特殊引号?(##) [英] F# special quotes? (##)

查看:13
本文介绍了F# 特殊引号?(##)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚跑过http://frankniemeyer.blogspot.com/2010/04/minimalistic-native-64-bit-array.html其中包含行

(# "sizeof !0" type('T) : nativeint #)

我相信技术用语是这到底是什么?"在我(约 8 个月)的 F# 编程中,我从未遇到过类似的东西......

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 with (# doh...嗯,不多

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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆