O'Reilly logo

Expert F# 4.0, Fourth Edition by Antonio Cisternino, Adam Granicz, Don Syme

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

CHAPTER 7

image

Encapsulating and Organizing Your Code

Organizing code and making it available for people and programs to use is a key part of best using F#. In this book, you’ve already seen many of the constructs to help you do this: functions, objects, type definitions, modules, namespaces, and assemblies. In some cases, however, you’ve encountered these only peripherally when using the libraries that come with F#. This chapter will cover these constructs from the perspective of code organization and encapsulation.

Organizing code can involve four distinct activities:

  • Organizing code into sensible entities using namespaces, types, and modules. ...

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