O'Reilly logo

F# High Performance by Eriawan Kusumawardhono

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

General computation expression design considerations

We have implemented a very simple computation expression using Bind, Return, and Zero as a starting sample.

We can conclude that the use of Bind will translate into let! as the result of let! expression will be composed nicely. The other translations are available on the official MSDN docs page of computation expression.

The translation of builder methods into syntaxes of language constructs such as let!, return, return!, and  do! are samples of syntactic sugar. The syntactic sugar of a computation expression is the ability to translate the builder methods into very neat declarative expressions to combine expressions and functions nicely. It is quite easier to have computation expressions instead ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required