------art_3863_28856288.1208771475485
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Hi,

In a static typed languge like java, the compiler is trying to prevent you
from making type-conversion errors although it is not always sucessful
(otherwise java would not need the ClassCastExcpetion).

You should be writing tests before your code no matter what languge you are
using but in dynamic lanaguges like Ruby the tests are your safety net.  Are
you working with a test framework like rspec and/or Test::Unit?

Cheers

Adrian





On 21/04/2008, thufir <hawat.thufir / gmail.com> wrote:
>
> On Sun, 20 Apr 2008 19:52:35 +0900, Florian Gilcher wrote:
>
> > The interesting thing about Generics in Java (and the point where they
> > cannot make
> > sense in ruby) is that they are only checked on _compile_ time. So, at
> > runtime, all
> > generic collections behave as a collection of Object.
>
>
> It wouldn't be useful to have some sort test to make sure there's not a
> type problem ahead of time?
>
>
> -Thufir
>
>
>

------art_3863_28856288.1208771475485--