From: Robert Dober Date: 2006-04-02T23:36:03+09:00 Subject: Re: Typed Parameters ------=_Part_3338_19816090.1143988560708 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On 4/2/06, gwtmp01@mac.com wrote: > > > On Apr 2, 2006, at 10:12 AM, Robert Dober wrote: > > Interesting points, please be aware though, that the runtime > > environement > > would not be burdened at all. > I don't follow. Wouldn't each method call involve executing the pre- > condition tests? No it would not unless specified, but look at the nice idea Austin has give= n us above, makes it much clearer. * precond and postcon blocks. Wouldn't that allow for great possibilities with rdoc and switching them on/off with switches. That might be a great opportunity with RITE as we can create byte code without the conditions after testing :) And of course if you do not specify them they would not burden anything! > As this strikes me as a sound approach not followed often enough it > > might > > not be possible all the time and is not really part of the Ruby > > concept. > > It may not be part of the Ruby language but I've found that the Ruby > culture certainly > encourages automated testing as an integral part of program development. And I thaught it might encourage defensive programming - but had quite a limited idea. Your post and Austin's - who has taken a lot of time on this one, ty again, have braught up some good ideas, my approval is not enough of course. Gary Wright Ty both for your enlightement. Cheers Robert -- Deux choses sont infinies : l'univers et la b=EAtise humaine ; en ce qui concerne l'univers, je n'en ai pas acquis la certitude absolue. - Albert Einstein ------=_Part_3338_19816090.1143988560708--