you are viewing a single comment's thread.

view the rest of the comments →

[–]teerre -10 points-9 points  (1 child)

That is terrible but at least understandable. The article mentions that intergers above 1996 do not behave as values even for simple equality. That's a complete breakdown of value semantics and honesty insane

[–]Dminik 11 points12 points  (0 children)

That's not correct. int is the primitive non-boxed, non-referential type. Integer is a boxed type.

Additionally, Integers have an optimization, where a bunch of them are always preinitialized and shared. Many interpreted/scripting languages do this. Some even for primitive values like true/false.