You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Operators >> and << defined in src\FSharpWrapper\FSharpWrapper.fs
conflict with built-in F# function composition operators.
Example. The following code:
openMicrosoft.ML.Probabilistic.FSharpletf2 x = x *2letf3 x = x *3letf6= f2 >> f3
results in the compiler error:
error FS0001: Expecting a type supporting the operator '>' but given a function
type. You may be missing an argument to a function.
If we comment out open Microsoft.ML.Probabilistic.FSharp then it compiles.
But then it is harder to work with F# wrapper features, especially operators.
If the choice of operators was not an intentional design decision with
awareness of the conflicts, can these operators be changed?
The text was updated successfully, but these errors were encountered:
Operators
>>
and<<
defined insrc\FSharpWrapper\FSharpWrapper.fs
conflict with built-in F# function composition operators.
Example. The following code:
results in the compiler error:
If we comment out
open Microsoft.ML.Probabilistic.FSharp
then it compiles.But then it is harder to work with F# wrapper features, especially operators.
If the choice of operators was not an intentional design decision with
awareness of the conflicts, can these operators be changed?
The text was updated successfully, but these errors were encountered: