The FP counterpart

Functional languages favor parametric polymorphism with bounded quantification, thereby avoiding some of the pitfalls of inheritance. Informally, functional languages emphasize substitutability and de-emphasize implementation reuse, as reuse is better achieved through composition. Most ambitions of the LSP are effectively trivial in FP languages.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset