instanceof Operator
P T Withington
ptw at pobox.com
Sun Oct 21 13:53:14 PDT 2007
On 2007-10-21, at 14:48 EDT, Jeff Dyer wrote:
>>
>> The wrapper classes String, Number, Boolean are similar to the
>> (primitive) values they wrap, but they're not really related to those
>> value types in a type sense, and in ES4 the wrappers are of even less
>> utility than in ES3, I would say.
>>
>
> Right, thanks for the correction. This is an obvious consequence of
> the
> recent return of primitive wrappers to ES4. 'string' is the new
> 'String'!
Yikes. I thought 'String' was being kept around so you could extend
it. Why is it that 'string' cannot be a sealed sub-type of (the open
class) 'String'?
More information about the Es4-discuss
mailing list