a �crit dans le message news: 93l8hm$rlp$1@nnrp1.deja.com... > In article <93e4e6$ucg$1@nnrp1.deja.com>, > Robert Dewar wrote: > > > > It is NOT "using all advantages of [a] concept" to insist that > > it be used absolutely everywhere. On the contrary, that kind of > > approach leads to a much more restrictive and less useful > > expressive power. > > > > Very true. > > My favorite example is the notion of "purity" of OO languages, which > holds that some good comes from the ability to say "everything is a > class". The only result is that you have to contort everything into > _being_ a class for the sake of being able to say this, so for instance > you have to have a "singleton" design pattern to work around not having > packages with state, etc. > Very Very true :-) Too often, people slip from "anything can be done with classes" to "anything must be done with classes". I'm always amazed by people who value "pure OO" language. It's like having just one tool in one's tool box, and being proud of it. Everything can be done with a swiss army knife, so everything must be done with a swiss army knife. You don't need that ol' chain saw any more. Want to cut a big tree ? all you need is a swiss army knife (and patience). -- --------------------------------------------------------- J-P. Rosen (Rosen.Adalog@wanadoo.fr) Visit Adalog's web site at http://pro.wanadoo.fr/adalog