代码之家  ›  专栏  ›  技术社区  ›  matrix

Why should C# developer learn IronPython?

  •  2
  • matrix  · 技术社区  · 16 年前

    我们都知道C是一种静态语言,而Python是一种动态语言。但我想知道python有哪些特性,而c没有。另外,在同一个应用程序中使用Ironpython和C是否明智/有益?

    在我说服我的老板使用铁通之前,我应该注意哪些要点?

    2 回复  |  直到 16 年前
        1
  •  7
  •   Niki    16 年前

    In other words, what points I can give to my boss to convince him to use IronPython?

    不要。如果你不知道为什么你应该使用一个新的工具,为了什么,不要试图说服任何人使用它。在工作中,你应该试着用最好的工具来解决问题,而不是仅仅因为你的问题是花哨的,就把最高级的工具扔到你的问题上。

    Learn IronPython, maybe make a small side project in it, find out what the strenghts are. 然后 if you think these strengths are useful for the project you're working on (e.g. for "glue code", plugins, macros etc.), convice your boss to use them.

        2
  •  7
  •   Prav    16 年前

    Ironpython的一个主要优点是它作为应用程序框架的可扩展层,以.NET语言编写。将Ironpython解释器集成到现有的.NET应用程序框架中相对简单。一旦到位,下游开发人员就可以使用用Ironpython编写的脚本与框架中的.NET对象交互,从而扩展框架接口中的功能,而无需更改框架的任何代码库。

    IronPython makes extensive use of reflection. When passed in a reference to a .NET object, it will automatically import the types and methods available to that object. This results in a highly intuitive experience when working with .NET objects from within an IronPython script.