exploring-reasonml icon indicating copy to clipboard operation
exploring-reasonml copied to clipboard

Chapter: Basic modules

Open rauschma opened this issue 7 years ago • 1 comments

rauschma avatar Feb 07 '18 06:02 rauschma

In the intro to "Abstract types: hiding internals" there's the sentence: "You can use interfaces to hide the details of types."

I think it's good to start with a (non-exhaustive) overview of advantages to hiding modules' internals.

  • not unnecessarily exposing implementation details
  • decoupling internal implementation from module signature (somewhat overlapping with 1)
  • module signatures being more helpful

I think it may help being a little bit more explicit here. Or including an example of not-hiding-module-internals leading to potential problems.

nielsbom avatar Nov 19 '18 16:11 nielsbom