From: "Florian Groß" Date: 2005-04-11T22:33:58+09:00 Subject: Re: Ocaml and Ruby reflection was Re: Welcome to our (ruby-talk ML) Richard Cole wrote: > In Ruby I write a lot of unit tests because I expect errors. Also you > can't ask the interpreter what the return type of a function is, or what > the types of the arguments are, its all implicit so you need to invest > more time documenting the code. But that's a good thing right? > > I'd like to have interfaces in Ruby so I can specify type constraints on > arguments and return values, the are constraints there implicitly > already, I want to make them explicit. Problem is that getting the > addition of interfaces to Ruby right, and finding out how to use them > properly, is hard. I agree and would be interested in your views about http://ruby-contract.rubyforge.org/