Python is DOOMED! Again!

Gregory Ewing greg.ewing at canterbury.ac.nz
Mon Feb 2 00:46:13 EST 2015


Devin Jeanpierre wrote:
> I answered my own question later, by accident: Java nulls are castable
> to each other if you do it explicitly (routing through Object -- e.g.
> (Something)((Object) ((SomeOtherThing) null)))).
> 
> So in that sense, there is only one null, just with some arbitrary
> compiler distinctions you can break through if you try hard enough.

You can't conclude that they all have the same runtime
representation, though. The compiler could be generating
code to convert them in response to the cast.

-- 
Greg



More information about the Python-list mailing list