Path: csiph.com!news.mixmin.net!border2.nntp.ams1.giganews.com!nntp.giganews.com!buffer2.nntp.ams1.giganews.com!nntp.brightview.co.uk!news.brightview.co.uk.POSTED!not-for-mail NNTP-Posting-Date: Wed, 03 Aug 2016 14:08:33 -0500 From: Gareth Owen Newsgroups: comp.lang.c Subject: Re: High level C References: <87mvlimt9i.fsf@bsb.me.uk> <5793c3cb.1636046@news.xs4all.nl> <65b61a13-a54c-4ade-9168-4d71de86103f@googlegroups.com> <89cbb9bc-51c5-45f0-b0ba-c0d469a0b668@googlegroups.com> <20160731164221.2f1d338d@maxa-pc> Date: Wed, 03 Aug 2016 20:08:32 +0100 Message-ID: <877fbxzn4f.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) Cancel-Lock: sha1:fBidKtGNERMlINKxy40fsU9HeYg= MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Lines: 21 X-Usenet-Provider: http://www.giganews.com X-Trace: sv3-ynf2Nxhjbiy99ClF/hBvce7UdTlSoVnVu7bG98v5yEWV3J25Z50wGo4OCmnOn3EmYNGCVBTdApPm8MR!Fx+baRn25w91SAmPZ5+6h1jwUpTNDyTCuHYwaRKB8OXdVkClOSgZzMzl4C6TSaETIWz1Rg== X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 X-Original-Bytes: 2456 Xref: csiph.com comp.lang.c:91618 jacobnavia writes: > Le 03/08/2016 à 20:27, BartC a écrit : >> Or you could leave such details to the GC instead. > > EXACTLY!!!! Couldn't agree more. GC isn't a panacea but for a GUI app like an IDE where buffers are being passed around without any clear notion of ownership - why would anyone want any other solution?[0] There's a reason that standard C and C++ are no longer the first choice GUI programming languages. > WHY BOTHER WITH malloc/free ??? Yup. [0] Reference counting could probably be made to work, but you're bound to hit some circular references and have to worry about who has the weak reference... Yuk.