signature-files

    2熱度

    1回答

    考慮下面的代碼... type IMyInterface = abstract BoolA : bool abstract BoolB : bool let myFn _boolVal (_i: IMyInterface) = if _boolVal then _i.BoolA else _i.BoolB let myFnTrue = myFn true let myFn

    1熱度

    2回答

    我正嘗試使用F#簽名文件爲輕量級數據存儲模塊創建抽象。這裏是我的簽名文件的代碼,讓我們說這就是所謂的repository.fsi namespace DataStorage /// <summary>Lightweight Repository Abstraction</summary> module Repository = /// <summary> Insert data i

    2熱度

    1回答

    我試圖使用一個fsi文件來允許單獨文件中的相互遞歸類,但我的fsi文件沒有編譯。下面是一個演示問題的簡單例子。 文件program.fs: module mod1 type first = |zero = 0 文件File1.fs: module mod2 type second = |zero2 = 0 與--sig:signature.fsi編譯產生: #lig