2
我有幾百行代碼。它的許多小塊具有以下結構:爲什麼F#交互標記這個錯誤?
let soa =
election
|> Series.observations
printfn "%A" <| soa
頻繁發生兩件事情:
1)令人不解的最後一行改爲:
printfn "%A" <|
,這樣上面的代碼和什麼如下變爲
let soa =
election
|> Series.observations
printfn "%A" <|
let sls =
election
|> Series.sample (seq ["Party A"; "Party R"])
printfn "%A" <| sls
這發生在上面幾百行我在哪裏在編輯器中編輯文件。
2)發生這種情況時F# Interactive
不會標記錯誤。不會生成錯誤消息。但是,如果我嘗試訪問sls
我得到的消息:
error FS0039: The value or constructor 'sls' is not defined.
爲什麼一些代碼在編輯器中被刪除的任何想法? (這種情況經常發生)
爲什麼F# Interactive
發出錯誤信息?