On 06/22/2012 11:29 PM, Boris Zbarsky wrote:
> Does it make any sense to make things like ObjectValue subclasses of Value instead of just functions, so I could use ObjectValue& or ObjectOrNullValue& or whatnot as an argument?
This sounds good to me. Keeping everything as a Value as long as possible in general -- not just for this particular circumstance -- might even be a very minor performance win, in terms of not unboxing things until absolutely necessary.
Jeff