.NET 和动态语言

发布于 2024-07-13 02:05:51 字数 103 浏览 4 评论 0原文

当 Microsoft 开始发布 DLR 和相关语言时,您是否计划使用这些语言(例如 Iron Ruby 或 Iron Python)?

如果是这样,您这样做的动机是什么?

When Microsoft gets around to releasing the DLR and related languages are you planning on utilising those languages (such as Iron Ruby or Iron Python)?

If so, what are your motivations for doing so?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(7

演出会有结束 2024-07-20 02:05:51

是的,我当然打算找一些非必要的项目来熟悉 IronRuby。

我确信有一些真正的项目将受益于使用动态语言,但我不相信我可以正确判断,直到我用该语言编写了一些有意义的代码,所以我认为需要有意识地努力打破先有鸡还是先有蛋的情况。

我认为 IronRuby 将提供机会专注于该语言的新功能,而不会因新开发环境的差异而分心(我几乎是一个 C# 单一语言者)。

昨天我正在观看 IronRuby:正确的语言做正确的工作,这可能会影响我的回答 ;-)

Yes, I'm certainly planning to find some non-essential project to acquaint myself with IronRuby.

I'm sure there are real projects that will benefit form using a dynamic language but I don't believe I can properly judge that until I've written some meaningful code in the language, so I think it takes a conscious effort to break the chicken and egg situation.

I think IronRuby will provide the chance to concentrate on what's new in the language w/o being distracted by the difference of new development environment (I'm pretty much a C# monoglot).

I was waching IronRuby: The Right Language for the Right Job yesterday so that might be affecting my answer ;-)

梦里°也失望 2024-07-20 02:05:51

是的,在某些情况下。

主要动机是重用已在 Ruby 和 Python 中实现的现有代码和库,以便更轻松地与用 C# 编写的其他代码进行交互。 对我来说,最重要的是跨语言集成的好处。

Yes in some cases.

Main motivation is to reuse existing code and libraries already implemented in Ruby and Python with easier interaction with other code written in C#. For me, its all about the cross-language integration benefits.

撞了怀 2024-07-20 02:05:51

如果它们适合我正在从事的项目,我计划使用它们。 如果该项目同样可以轻松地用 C# 完成,我可能会坚持使用静态语言,因为 dynamic 关键字将允许许多相同的功能。

I plan on using them if they are right for the project I am working on. If the project is just as easily done in C#, I will probably stick to the static language, given that the dynamic keyword is going to allow much of the same functionality.

﹂绝世的画 2024-07-20 02:05:51

我不是 .NET 开发人员,但我会考虑以下条件来使用它:

  • 速度/内存消耗(与其他实现相关);
  • 可移植性(或者:“它仍然是 Python/Ruby/etc 吗?同样的代码会在官方实现上运行吗?”);
  • 不错的额外功能(只要它们不破坏第 2 条的太多内容)。

I'm not a .NET developer, but I'd use it considering the following conditions:

  • Speed/Memory consumption (in relation to other implementations);
  • Portability (or: "Is it still Python/Ruby/etc? Will this same code run on the official implementation?");
  • Nice extra features (as long as they don't break too much of item 2).
莫相离 2024-07-20 02:05:51

大多数这些语言都可以在您的应用程序中托管,这就是有趣的地方。

如果您正在编写一个允许用户编写脚本以实现可扩展性的应用程序,那么您应该考虑使用它们。

Most of these languages can be hosted with in your application, and that's the interesting point.

If you are writing an application that allows your users to write scripts for extensibility, then you should consider using them.

忘东忘西忘不掉你 2024-07-20 02:05:51

我当然打算看看Cucumber。 同样,我认为如果我不至少看看 Rails 和 Django,那就太疏忽了。

I certainly intend to look at Cucumber. Equally I think it'd be negligent of me not to at least look at Rails and Django.

春花秋月 2024-07-20 02:05:51

不。除了一些元编程(反射很糟糕)之外,动态语言与具有良好类型推断的静态类型语言相比并没有任何吸引力。

一方面,由于 IDE 性能不佳而造成的生产力损失是相当严重的。

No. Apart from some metaprogramming (Reflection sucks), dynamic languages don't really hold any appeal over statically typed languages with good type inference.

And the loss in productivity due to weak IDEs, for one, hurts quite a bit.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文