Operator to obviate ((type)object).method()
Posted on 2003-12-06
I recall about 18 months ago reading that the "next version" (back then) of Java would introduce an operator providing a more elegant way of doing this:
so that the cast applies to the object rather than the return value from its method.
Was this just some dream I had or is this actually coming? Have I missed something since then that already replaces this?