Subj : Re: SM & typeof operator To : Shanti Rao From : Brendan Eich Date : Sat Jun 19 2004 07:37 pm Shanti Rao wrote: > Ah, of course. typeof is an operator, not a function. Right, which is why I write typeof foo, not typeof(foo) -- same for delete (and for sizeof operating on an expression, not a type, in C and C++). Then there's no chance of confusion. Over-parenthesizing may seem less confusing if you want everything to appear to be a function, but then you can run afoul of operator precedence. It's not nice to fool Mother Grammar :-). /be .