2007年12月
By pongba #从fishbowl上看到的,非常幽默: Occasionally in Java, you come across an API that makes you sit up and go “What were they thinking?” Take, for example, the code to list all the threads in the current ThreadGroup. Rather than having the obvious method: i.e. one that returns a list (or array) of threads, the signature looks like this: int enumerate(Thread[] list) You pass an empty array to the method, which will be filled with Thread objects. The method then returns the number of thr阅读全文>
发表于 @ 2007年12月26日 19:05:00|评论(loading...)|编辑
By pongba reddit上看到的。 这位老大对类型系统作了相当清晰的阐述;到目前为止是我看到的最清晰的。 其它的要么是盲人摸象(这里,这里,这里),要么是不着四六(这里),要么是云山雾罩(这里)。 Latent typing is any type system where you do not need to explicitly write the types of variables down in source code. Its opposite is manifest typing, where you do need to explicitly write the types down in source code. Static typing is a type system where individual expressions in the source code must have types, whether written or inferred by the compiler. Dynamic typing is a阅读全文>
发表于 @ 2007年12月26日 08:36:00|评论(loading...)|编辑
TopLanguage(http://groups.google.com/group/pongba)自从8月份建立以来,已经吸引了四百多位同学,三千多条讨论,想知道我们讨论些什么,参见TopLanguage讨论精选[一],精选[二],精选[三],加入前请看这里。 这个博客为团体创作保留,欢迎加入我们:)阅读全文>
发表于 @ 2007年12月12日 08:12:00|评论(loading...)|编辑