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 ...

Get F# for Quantitative Finance now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.