Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
[Caml-list] OCaml and Design Patterns
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2004-10-20 (18:47)
From: David Brown <caml-list@d...>
Subject: Re: [Caml-list] OCaml and Design Patterns
On Wed, Oct 20, 2004 at 06:30:01PM +0100, Richard Jones wrote:

> Just my personal opinion, but I've seen a lot of terrible code written
> which uses "design patterns" ...  A lot of the patterns seem to exist
> solely to bypass problems with OO languages.

Design Patterns seem very similar to what is usually called idioms in other
languages.  They're just common constructs you learn for common tasks.  An
example in ocaml might be typical recursion for a loop.

However, the OO Design Patterns do seem more to be techniques used to
compensate for defects in the OO methodology, or specific languages.

I would suspect that when someone encounters a place to use a design
pattern in OCaml, the problem would much better be solved by using some
other feature of the language.


To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: