節選自Programming Perls一個報價: A Simple Design : Antonie de Saint-Exupery,
the Fresh writer and aircraft designer, said that,
*"A designer knows he has arrived at perfection
not when there is no longer
[<ReflectedDefinition>]
let rec x = (fun() -> x + "abc")()
與上面的遞歸值會產生以下F#編譯器錯誤示例代碼: error FS0432: [<ReflectedDefinition>] terms cannot contain uses of the prefix splice operator '%' 我看不到上面的代碼中的任何切片
我在試圖弄清楚修改報價並評估它們。在這裏,我從基礎開始,嘗試使用Quotations API創建報價。報價綁定OK,但評估時出現錯誤。 #r @"FSharpPowerPack-2.0.0.0\bin\FSharp.PowerPack.dll"
#r @"FSharpPowerPack-2.0.0.0\bin\FSharp.PowerPack.Linq.dll"
open Microsoft
只是想知道... 我發現使用轉義字符太分心了。我寧願做這樣的事情(控制檯代碼):
>>> print ^'Let's begin and end with sets of unlikely 2 chars and bingo!'^
Let's begin and end with sets of unlikely 2 chars and bingo!
注意'裏面的字符串,而這句法將如何與