FSharpPlus icon indicating copy to clipboard operation
FSharpPlus copied to clipboard

Quotation Monad

Open gusty opened this issue 5 years ago • 0 comments

This will implement #44

A quotation monad allow us to compose functions returning expressions.

At the end of the composition we get a single expression, internally containing markers where an evaluate function needs to run a sub-expression.

Since F# doesn't support the "eval" expression, we can't directly run this expressions in existing quotation evaluators, but we include an Expr.run function which takes any normal quotation evaluator and takes care of handling the internal marker. So, instead of doing evaluator expr we do Expr.run evaluator expr.

gusty avatar Oct 11 '20 11:10 gusty