I just finished reading the Ruby chapter of the book 7 Languages in 7 Weeks. Aside from some syn开发者_开发问答tactic sugar here and I can't really see anything which can't be done with C# with a similar syntax. I do understand both languages are inherently different, but my question relates to its usage rather than design.
Relevant questions make me believe Ruby offers little more than C#:
- Why aren't c# programmers drawn to ruby as java programmers are?
- Is Ruby's code block same as C#'s lambda expression?
I hardly worked with Ruby and my understanding of the language is still very limited, so perhaps somebody who experimented with both .NET 4.0 and Ruby can answer with concrete examples.
Which tasks require significantly less work with Ruby than C# 4.0?
For those interested, since the question got closed here, I tried again on Programmers.SE, and accepted an answer there.
Both languages are Turing complete, so you can do exactly the same with both of them.
However I think some tasks will require less work in Ruby, and some in C#.
精彩评论