Re:Android: The Land That Python Forgot
by voltagex_ on Sunday November 10, 2013 @06:18PM
(#6708940)
I thought composition vs inheritance was strictly an OO, not a functional thing?
Re:Android: The Land That Python Forgot
by profquail on Sunday November 10, 2013 @07:41PM
(#6709247)
Functional programming usually leans towards composition, and OO programming towards inheritance. "Hybrid" functional languages, like F# and Scala, allow you to use both styles, mixing them in whatever way is most useful for the particular problem you're solving; "pure" functional languages, like Haskell don't offer OO-style inheritance, since composition is a better fit for combining side-effect free ("pure") functions.
tl;dr -- Composition is to functional programming as inheritance is to OO programming.
Re:Android: The Land That Python Forgot
by voltagex_ on Sunday November 10, 2013 @08:51PM
(#6709485)
Yeesh, $40 for the ePub directly from Manning, or $33 from Amazon for the print edition with a free ePub.
Re:Android: The Land That Python Forgot
by profquail on Monday November 11, 2013 @08:34AM
(#6711471)
There are a few chapters of the book online for free at MSDN, and if you're going to buy the book, they also have a coupon code: http://msdn.microsoft.com/en-us/library/vstudio/hh314518%28v...
[1]: http://www.amazon.com/Real-World-Functional-Programming-With...