From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/14381 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: "A. Wilcox" Newsgroups: gmane.linux.lib.musl.general Subject: Re: [PATCH] Define NULL as __null in C++ mode when using GCC or Clang. Date: Wed, 10 Jul 2019 15:11:30 -0500 Message-ID: References: <20190709193826.GR1506@brightrain.aerifal.cx> <20190710020357.GI21055@port70.net> <871ryycs9n.fsf@oldenburg2.str.redhat.com> <20190710164446.GS1506@brightrain.aerifal.cx> Reply-To: musl@lists.openwall.com Mime-Version: 1.0 (1.0) Content-Type: multipart/alternative; boundary=Apple-Mail-81B2C9C4-2321-4363-AE78-F575E38AB222 Content-Transfer-Encoding: 7bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="98700"; mail-complaints-to="usenet@blaine.gmane.org" To: musl@lists.openwall.com Original-X-From: musl-return-14397-gllmg-musl=m.gmane.org@lists.openwall.com Wed Jul 10 22:11:53 2019 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by blaine.gmane.org with smtp (Exim 4.89) (envelope-from ) id 1hlIwS-000Pa7-Is for gllmg-musl@m.gmane.org; Wed, 10 Jul 2019 22:11:52 +0200 Original-Received: (qmail 11285 invoked by uid 550); 10 Jul 2019 20:11:49 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Original-Received: (qmail 11265 invoked from network); 10 Jul 2019 20:11:48 -0000 In-Reply-To: X-Mailer: iPhone Mail (15E302) Xref: news.gmane.org gmane.linux.lib.musl.general:14381 Archived-At: --Apple-Mail-81B2C9C4-2321-4363-AE78-F575E38AB222 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On Jul 10, 2019, at 12:35 PM, James Y Knight wrote: >=20 > It's a question which is impossible to ever answer in the negative -- ther= e always _may be_ any sort of terrible software implemented out there, somew= here. But, I do doubt any such relevant compilers actually exist. Or, put another way, it has always seemed to me that one of musl's tenets is= to "fail fast and break hard" on egregiously invalid code. I'd argue "prete= nding to be GNU C++ and not having __null" is much more egregious than "code= still using NULL in C++". Therefore it's better to break the invalid compi= ler (which could have any number of other bugs) than break the C++ code. Sincerely, --someone who actually enjoys using musl and also actually enjoys using C++,= a seemingly rare breed -- A. Wilcox (Sent from my iPhone - not signed) Project Lead, Ad=C3=A9lie Linux https://adelielinux.org= --Apple-Mail-81B2C9C4-2321-4363-AE78-F575E38AB222 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable On Jul 10, 2019, at 12:35 PM, James Y Knigh= t <jyknight@google.com> wro= te:

It's a question which i= s impossible to ever answer in the negative -- there always _may be_ any sor= t of terrible software implemented out there, somewhere. But, I do doubt any= such relevant compilers actually exist.

Or, put a= nother way, it has always seemed to me that one of musl's tenets is to "fail= fast and break hard" on egregiously invalid code. I'd argue "pretending to b= e GNU C++ and not having __null" is much more egregious than "code still usi= ng NULL in C++".  Therefore it's better to break the invalid compiler (= which could have any number of other bugs) than break the C++ code.

Sincerely,
--someone who actually enjoys using mu= sl and also actually enjoys using C++, a seemingly rare breed

=
--
A. Wilcox (Sent f= rom my iPhone - not signed)
<= span style=3D"background-color: rgba(255, 255, 255, 0);">Project Lead, Ad=C3= =A9lie Linux
= --Apple-Mail-81B2C9C4-2321-4363-AE78-F575E38AB222--