作为一个老 Python 开发,看了这篇 3.13 的类型注解新特性解读之后,头有点冷: https://medium.com/techtofreedom/7-new-typing-features-in-python-3-13-58caae5f2f10?sk=6ee66766ba372ea1f62b44a0ef08012d
1
passive 3 小时 32 分钟前 via Android 2
Whatever the world was like when I was 20 is perfect, everything before that is too old, everything after that is too new.
|
2
billccn 1 小时 39 分钟前
这些功能在很多其他语言里面都有,但非要取个跟其他语言都不一样的名字。。。
|
3
tairan2006 51 分钟前
还好,反正 type hint 本来就是可选的
但是这玩意我是真记不住… |
4
dragondove 34 分钟前
@billccn 没明白是指哪几个特性,在其他语言里等价的概念是什么
|
5
june4 29 分钟前 1
以前写 py 还是没有类型注解的时候,现在一看 py 的类型好奇怪的样子,类型竟然还是具体的可导入可操作的实际对象,感觉是拿现成的锤子做了把剪刀,写多了 typescript 不知道 py 这种类型写起来是什么感觉,有没有类型体操
|
6
zcf0508 22 分钟前 via Android
@june4 https://github.com/laike9m/Python-Type-Challenges 有 python 版本的类型挑战
|
7
crackidz 11 分钟前
还好吧,也没多很多很复杂的东西啊
|