O'Reilly logo

F# for Quantitative Finance by Johan Astborg

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

A brief look at imperative programming

In this section, we will look at imperative programming and object orientation. It's hard to do object orientation without involving imperative programming. In other words, mutable state. Mutable state and pure functional programming is not a good combination, in fact pure functional programming forbids mutable state totally. To our rescue, F# is not a pure functional programming language, so mutable state is allowed. With this knowledge, we can continue and learn about object orientation and how it's carried out in F#.

Object-oriented programming

F# is a multi-paradigm language where object orientation makes up parts of it. This makes the language interact seamlessly with the other .NET languages in the case ...

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