On Oct 9, 4:11 am, atrepp <[EMAIL PROTECTED]> wrote:
> You are surely right about the utility of Number object over
> primitives and the overhead it can be. I use the Number Constructor to
> parse string and convert to Number and store it like that in my cache.

Why don't you use `Number` (as a function, not as a constructor) to
type convert string into a number?

> In the cache, there are other custom objects that inherits from
> Number.

I still don't see why not just use primitives (letting interpreter
take care of object conversion)?

> Cordially,
> Alex

--
kangax

>
> On 8 oct, 21:15, Tom Gregory <[EMAIL PROTECTED]> wrote: 
>
> > (I would go a step further, and suggest use of the object wrappers to  
> > be "less-good" design because of the extra code required to use 'em.)
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Prototype: Core" group.
To post to this group, send email to prototype-core@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/prototype-core?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to