I have seen the following # sign in some libraries and am not sure what its significance is:
let Compile (e: #Expr)
The Expr is referring to FSharp.Quotations.Expr in this case - not sure if that is relevant.
#Expr is a shortcut for 'T when 'T :> Expr, which can be read as
some type, which we shall call
Tfor now, which is compatible with typeExpr
MSDN has more documentation on Flexible Types.
See also What is the purpose of flexible type annotation in F#? here on Stack Overflow.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With