in reply to Re^6: Re-blessing || Re-constructing objects
in thread Re-blessing || Re-constructing objects

The person trying to debug this code later may not agree that doing something so strange and unexpected just to save a few lines was worth it.
  • Comment on Re^7: Re-blessing || Re-constructing objects

Replies are listed 'Best First'.
Re^8: Re-blessing || Re-constructing objects
by adrianh (Chancellor) on Apr 18, 2006 at 14:40 UTC
    The person trying to debug this code later may not agree that doing something so strange and unexpected just to save a few lines was worth it.

    Possibly. But the very few occasions I have used the technique the motivation hasn't been to save lines of code. It's been to provide a simpler and clearer solution than the alternatives. I can only hope I succeeded.