Path: csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Robert Latest Newsgroups: comp.lang.c++,comp.lang.c Subject: Re: No, C is not a simple language Followup-To: comp.lang.c Date: 26 Apr 2021 09:24:59 GMT Lines: 15 Message-ID: References: X-Trace: individual.net zm26PTqBzz5Z6eb5HcxXcgn+IKe7d8A+XoUpjBXqpWPHQaGZNk Cancel-Lock: sha1:6DKJeeE8BAoX7Pot3+aIrH+MRXM= User-Agent: slrn/1.0.3 (Linux) Xref: csiph.com comp.lang.c++:79279 comp.lang.c:160346 ["Followup-To:" header set to comp.lang.c.] jacobnavia wrote: > Just have a constructotr and never free anything. Then link with Boehm's > GARBAGE COLLECTOR and be done with it! Whan I find myself in a situation where explicitly freeing resources becomes unwieldy I start thinking about using another language than C (which, like i.e. Python, comes with garage collection). If you're too lazy to use free(), you should also be too lazy to use malloc() or to declare your variables. Better to use a language where you don't have to do any of it. -- robert