Encapsulating and Organizing Your Code
Organizing code and making it available for people and programs to use is a key part of making the best use of F#. In this book, you’ve already seen many of the constructs to help 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 covers these constructs from the perspective of code organization and encapsulation.
Packaging code has four distinct but related meanings:
- Organizing code into sensible entities using namespaces, types, and modules. ...