On 2009-11-20, at 13:59, Rami Ojares / AMG Oy wrote: > Oh yeah and the differences between String object and String literal and > Boolean object and boolean literal...phew
Indeed. I think Brendan would say he spec'd Javascript too soon after reading the Java manual which left him thinking he needed primitive types. There's no reason for having them in Javascript. The only reason you can even tell there are two types "in language" is because of some flaws in the spec. I believe these flaws have been corrected in Edition 5. > I think the biggest blunder of all times concerning types was the omission of > boolean datatype (and here we have a list of fairly respectable languages > like C, Lisp and SQL). > > Most of the SQL databases still do not have a Boolean datatype! I let C off the hook only because when that was designed, it was only meant to be an improvement on assembly language. It's nice that Java fixed that. (I can't tell you the number of times Java has caught me saying `if (a = 3)`, which C would have let slip right by...)
