Boo与IronPython [英] Boo vs. IronPython

查看:66
本文介绍了Boo与IronPython的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

查看了这两个项目中的每一个之后,似乎两者非常相似.两者都运行在CLI之上,都具有python样式的语法,都使用.NET而不是标准的python库.

After having looked at each of these two projects, it seems that both are VERY similar. Both run on top of the CLI, both have python style syntax, both use .NET instead of the standard python libraries.

那么,它们之间的区别和各自的优点是什么?

So, what are the differences between them and advantages of each?

推荐答案

我看到的主要区别是Boo是静态类型的,这意味着变量的类型是在其第一次赋值时推断出来的,并从那里固定下来-而IronPython具有普通Python代码的真实"动态行为.

The main difference as I see it is that Boo is statically typed, meaning the type of a variable is inferred on its first assignment and is fixed from there - while IronPython has the "real" dynamic behaviour of normal Python code.

IronPython 现在已经由Microsoft正式维护,的目标是2.0版中的新动态语言运行时.我怀疑因为它是静态类型的,所以Boo可能会更快.我对此没有太多的真实"经验……

IronPython is officially maintained by Microsoft now and targets the new Dynamic Language Runtime in version 2.0. I suspect because of it's statically typed nature Boo might be faster. I don't have much "real" experience with that though ...

IronPython还重新实现了许多python标准库,因此您可以在不更改IronPython的情况下运行许多python软件(例如

IronPython also reimplements lots of the python standard library so you can run lots of python software without change on IronPython (e.g. Django).

这篇关于Boo与IronPython的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆