Nick Treleaven <> changed:

           What    |Removed                     |Added
                 CC|                            |

--- Comment #4 from Nick Treleaven <> 2012-10-06 
06:22:10 PDT ---
(In reply to comment #3)
> typeof isn't a property or a function, unlike sizeof. It's like an
> is-expression, and I think that treating it like a property would be a 
> mistake.

I think (x + y).typeof should not be allowed, use the existing syntax instead.

However, x.typeof is a useful shorthand that helps cut down on nested brackets
in is expressions and elsewhere. So I would allow both typeof(expression) and
identifier.typeof to be used, but *not* expression.typeof.

The type of an instance is a natural property of the instance IMO.

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to