Version française
Home     About     Download     Resources     Contact us    
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: -- (:)
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.

Dave

-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners