Better Design Patterns Through Reflection

Share the article!


Gordon Weakliem blogs about a set of slides about “Design Patterns in Functional Programming”.  Well, I found something even better, a paper based on Peter Norvig’s work.  You can find the work here, the paper is interestingly subtitled “Better Patterns Through Reflection“.

Here’s a snippet of the conclusions:

Language features such as reflection, higher-order functions, multiple dispatch, and predicate types have a positive impact on the implementation of nearly all of the Gang of Four Design Patterns. In some cases, the need for an explicit pattern nearly disappear; such as the Factory Method patternbeing subsumed by an extensible instantiation protocol.

Share the article!

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>