Deutsch   English   Français   Italiano  
<874j8qs037.fsf@nosuchdomain.example.com>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Keith Thompson <Keith.S.Thompson+u@gmail.com>
Newsgroups: comp.lang.c
Subject: Re: question about nullptr
Date: Mon, 15 Jul 2024 16:32:28 -0700
Organization: None to speak of
Lines: 23
Message-ID: <874j8qs037.fsf@nosuchdomain.example.com>
References: <v6bavg$3pu5i$1@dont-email.me> <20240706054641.175@kylheku.com>
	<v6ragn$318o9$1@dont-email.me> <v7495c$tapm$3@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 16 Jul 2024 01:32:29 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="8217c2b21d71c07ef505eee537ff3f41";
	logging-data="978131"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX1+ZDhWDJWiy62ZCnwJ/hyTh"
User-Agent: Gnus/5.13 (Gnus v5.13)
Cancel-Lock: sha1:FSwceIDjlIR5oV1UUvFZLpFPJqU=
	sha1:F70PE+Vjn0AUF49/A3LZSiTU7oM=
Bytes: 1804

Lawrence D'Oliveiro <ldo@nz.invalid> writes:
> On Fri, 12 Jul 2024 14:19:19 +0100, Richard Harnden wrote:
>> Don't you use '\n'? Surely nobody would say 0x0a?
>
> Why not full symbolic Unicode names, à la Python:
>
>     "\n" == "\N{LINE FEED}"
>
> ⇒
>
>     True

Because C doesn't have that feature and is not expected to any
time soon, because C doesn't specify that '\n' is line feed, and
because using something like "\N{LINE FEED}" to denote a simple
newline charater would be silly because '\n' is already standard
and universally recognized by all C programmers.

Why do you ask?  Seriously, why did you ask this?

-- 
Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com
void Void(void) { Void(); } /* The recursive call of the void */