Writing .NET in dynamic language?
Posted
by
tillda
on Stack Overflow
See other posts from Stack Overflow
or by tillda
Published on 2010-12-23T07:54:33Z
Indexed on
2010/12/31
11:53 UTC
Read the original article
Hit count: 194
I'm confused by the possibility of writing .NET in dynamic languages, such as (Iron)Ruby. Particularly, I've seen code in IronRuby that used generics (...foo[String]
), but I'm not aware of this feature in Ruby as it seems nonsense to me in dynamic languages.
So, when I write .NET app in IronRuby, how is it with type safety and compilation? I thought that it is just as dynamic as Ruby everywhere else. I thought that if the Ruby syntax is OK all the type checking would be done at the runtime.
Also, as far as I know, .NET itself is type-oriented - there are classes that heavily utilize the mentioned generics. How is this handled?
And what about delegates? In dynamic languages I can have almost function-spaghetti and sometimes, its just fine (like hacking UI in javascript).
Or do I have to care even about generic delegates?
© Stack Overflow or respective owner