© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2022
K. EasonStylish F# 6https://doi.org/10.1007/978-1-4842-7205-3_8

8. Classes

Kit Eason1  
(1)
Farnham, Surrey, UK
 

It’s a curious thing about our industry: not only do we not learn from our mistakes, we also don’t learn from our successes.

—Keith Braithwaite, Software Engineer

The Power of Classes

F# classes give you the full power of Object-Oriented Programming (OOP)1. When you need to go beyond record types, for example, when the external and internal representations of data need to differ, or when you need to hold or even mutate state over time, classes are often the answer. They are also a great solution when you need to interact closely with an OO code base, ...

Get Stylish F# 6: Crafting Elegant Functional Code for .NET 6 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.