作者hongtzai ( )
站内Python
标题[闲聊] Guido van Rossum 的 Google+ 页面
时间Tue Mar 20 06:53:58 2012
https://plus.google.com/u/0/115212051037621986145/posts
搜寻了一下,没有po过
最新的一则 post 在讨论 class 写的太多的问题 :)
Classes must be nouns but not every noun must be a class.
If your class only has two methods and one of them is
init you probably meant to write a function.
大家有什麽看法呢?
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 114.39.187.196
1F:推 swpoker:主要是说不要过度OO~不要为了OO而OO~心中有OO就可以了 03/20 11:21
2F:→ ykjiang:因为 Python 的 function 就是 object 了 03/20 12:29
3F:→ ykjiang:且有 module 可以用,所以很多时候不用搞那麽复杂 03/20 12:29
4F:推 mikapauli:not every noun must be a class可是Python的特点之一! 03/20 12:55
6F:→ amulet5566:都只是工具而已..重点是把事情完成 宗教偏执就放一边吧 03/20 15:24