From: Robert Dober Date: 2006-04-02T06:09:45+09:00 Subject: Typed Parameters ------=_Part_32701_4865224.1143925781795 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Dear group there was a recent thread about "Boolean" and it braught me to my favorit thing I would love to have in Ruby2. *typed parameters* My code is completely filled with things like this: def never_saw_a_better_method( clever, smart, stupid ) assert_type clever, String assert_type smart, Hash assert_type stuoid, Boolean .... def cool( clever : String, smart : Hash, stupid : Boolean ) and of course def x(y) would be equivalent to def(x : Object ) There is no other than practical reason to that, I found that this kind of type assertion finds the most devious bugs in my code. Thaughts? 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_32701_4865224.1143925781795--