14
Comments
  • 3
    I totally agree
  • 2
    Hack or not, but it works.
  • 1
    It's a damn good hack. I've got better things to do with my time than fuck about calling malloc and free every other line.
  • 1
    @Zaphod65 Three words: automatic reference counting.
  • 1
    @devios1 that sounds an awful lot like bad garbage collection to me. Reference counting is a good way to get memory leaks, unless you're going to start looking for circular references, in which case... Just do proper GC.
  • 1
    @Zaphod65 It’s not. It’s superior in every way. Arc is a proper solution to what garbage collection was trying to solve: objects are disposed of deterministically and immediately the moment the last reference to it disappears. There’s no “collection” pass that has to stop execution of your program, do some cleaning, and then resume it again as gc does.
  • 0
    I use C++ and I never have to manually free any memory 😂
Add Comment