Python 3000 Status Update

http://www.artima.com/weblogs/viewpost.jsp?thread=208549





引用
For a long time there wasn't much more than a list of regrets and flaws that were impossible to fix without breaking backwards compatibility. The idea was that Python 3000 would be the first Python release to give up backwards compatibility in favor of making it the best language going forward.


这个范型看起来怪怪的,还不如直接写成haskell那样的呢.
def foobar(a: Integer, b: Sequence) -> String:


还有那个 print改成 print ()方法了,唉真是不习惯地说.

不过这个动态定义基类,挺不错的
bases = (B1, B2)

class C(*bases):


还有那个新的format方法,看起来不错.
其他的,大家自己去看了。

这次py3k 决定不兼容以前的版本挺让人吃惊的,不过不破不立地说。

你可能感兴趣的:(jsp,python,haskell,UP,idea)