advertisement

Article:
  Knowing When to Let Go: Better Living Through Memory Management
Subject:   hmmm
Date:   2003-06-23 09:03:21
From:   anonymous2
Response to: hmmm

You are of course completely correct, and it's nice to have your comments on it, but it still violates the DoTheSimplestThingThatCouldPossiblyWork philosophy (as featured on the Portland Pattern Repository).


For simple programs, autoreleasing in this sort of situation is not just convenient but probably preferable since you don't need the gain in efficiency.


I suppose I had better restate the ideal:
In programs where efficiency is key, avoid autoreleasing if possible. In programs where simplicity is key, autorelease where the convenience helps.


Your mileage may vary; strike your own balance.