开发者

Is there something as C#'s @ keyword in F#? [duplicate]

This question already has an answer here: Closed 11 years ago.

Possible Duplicate:

Using keywords as identifiers in F#

C# allows you prefix your variables with the @ keyword:

Keywords are predefined reserved identifiers that have special meanings to the compiler. They cannot be used as identifiers in your program unless they include @ as a prefix. For example, @if is a legal identifier but if is not because it is a keyword.

I am wondering whether there is a similar construct in F#. If I recall correctly,开发者_StackOverflow even VB.NET provides a similar construct.


use quotes:

let rec ``let rec`` () = ``let rec`` ()
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜