Java 是怎么变得令人讨厌的
先看两行代码: s := "String"; final s = "String"; 很难想象这是07 年Java 7 提出的两个提案吧。类型推导(Type Inference),现在成为了所有新语言都必定支持的特性,C#,甚至C++ 都开始支持。 但是提案都被否决了,最终只接受了一个聊胜于无的泛型类型推导。 否决的理由基本是这样的: 「让Java 看起来像弱类型」,「毫无意义」,「懒人为了少敲几个字符就要加这么一个特性」等等。 另外一个例子是为JDK 添…
先看两行代码: s := "String"; final s = "String"; 很难想象这是07 年Java 7 提出的两个提案吧。类型推导(Type Inference),现在成为了所有新语言都必定支持的特性,C#,甚至C++ 都开始支持。 但是提案都被否决了,最终只接受了一个聊胜于无的泛型类型推导。 否决的理由基本是这样的: 「让Java 看起来像弱类型」,「毫无意义」,「懒人为了少敲几个字符就要加这么一个特性」等等。 另外一个例子是为JDK 添…
For a Windows application or service, it is often necessary for either the user or service startup account to have full control to its folders and files. In most cases, this is transparent to the user. It is generally being taken care of by various d…