« Return to Thread: Not quite getting it.

Re: Not quite getting it.

by Paddy3118 :: Rate this Message:

Reply to Author | View in Thread

On 16 May, 19:45, Roger Alsing <roger.als...@...> wrote:

> Hi,
> I'm trying to get whats Ruby is all about.
> I've been doing .NET since beta so I'm kind of stuck in the static typed
> mindset.
>
> The parts that I do get:
>
> I love metaprogramming, I was able to make a port of my .NET AOP
> framework that took about 3 months to do in .NET in a week in Ruby (w/o
> ever touching ruby before.. )
>
> I also understand that its nice with auto promotion of number types when
> they would overflow in other languages.
>
> What I don't get:
>
> How do you deal with ducktyping?
> How can anyone assume that just because a method exists that the
> semantics is the same?
>
<<Snip>>
>
> So can someone try to convert me or am I forever lost? :-P
> --
> Posted viahttp://www.ruby-forum.com/.

Two blog posts that might help:
  http://jessenoller.com/2007/05/30/typeducking-on-duck-vs-static-typing/
  http://paddy3118.blogspot.com/2008/05/duck-typing-done-right-is-wrong.html

 « Return to Thread: Not quite getting it.