Value Semantics and Polymorphism -- Dean Michael Berris

Dean Michael Berris:

Value Semantics and Polymorphism

I've already raved about Elements of Programming by Alex Stepanov before but if there's any one chapter you should read in that book is the first one. The succeeding chapters build on the first but what's really important in the first chapter is the fact that once you understand how to think about values, you can start understanding how to really use the STL and how you can start getting more and more into the practice of generic programming. Even though the book is not really about generic programming, it is a glimpse into a fundamentally different way of thinking.

Let's take something dear to the Object Oriented Programming model and look at it in a different perspective...

Add a Comment

Comments are closed.

Comments (1)

0 0

Sektor said on Nov 1, 2012 03:03 PM:

Why value semantics and polymorphism don't come together?

Short: because objects have unique identifiers (references/pointers) and have contents, while values are their identifiers for themselves.