基本浮点类型和包装类浮点有不同的比较行为。
Primitive float type and wrapper class float have different comparison behavior.
使事情更糟的是,在基本float类型和包装类float之间,用于比较NaN和- 0的规则是不同的。
To make matters worse, the rules for comparing NaN and -0 are different between the primitive float type and the wrapper class float.
我们真正想看到的是,基本类型可以自动进行包装(boxing)和解包装(unboxing),类似于用 C# 所进行的操作(或者比后者更好)。
What we'd really like to see would be automatic boxing and unboxing of primitive types, similar to what is done in C# (except better).
应用推荐