开发者

What can be done with Ruby which can't be done with C# 4.0? [closed]

开发者 https://www.devze.com 2023-02-28 22:55 出处:网络
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references,or expertise, but this question will likely solicit debate, a
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 11 years ago.

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#.

0

精彩评论

暂无评论...
验证码 换一张
取 消