Chat Logs

  1. dreamrealgah, I hate reading stuff where I'm left going "... wait, why is this new? $foo has had that for a while now, that particular syntax looks okay but how does it... OHHH. Ew."
  2. jreicherdreamreal: why is what new?
  3. jreicherOn a different note, I just did something I never thought I would do. A deliberate upcast so that the compiler can verify a caller won't do something to the returned object.
  4. jreicher(Not without being naughty, anyway)
  5. ernimriluh? is doing a cast being naughty?
  6. jreicherNot an upcast. Not at all.
  7. jreicherIn fact you couldn't avoid them before covariant return types were added to Java.
  8. jreicherThat's an implicit upcast every time, right there
  9. jreicherAnd actually is what I'm doing now. This method is "explicitly non-covariant"
  10. jreicherHardly ground breaking, but it never crossed my mind I would want something like this.