11
我有這段代碼在文件不存在時引發錯誤。F的文件檢查代碼#
if !File.Exists(doFile) then
printfn "doFile doesn't exist %s" doFile; failwith "quit"
但是,我得到了這個錯誤。怎麼了?
error FS0001: This expression was expected to have type
bool ref
but here has type
bool
,其中使用向後管的一個很好的例子,使事情變得更具有可讀性。 – Benjol 2011-06-01 05:56:21