Sujet : Re: question about nullptr
De : tr.17687 (at) *nospam* z991.linuxsc.com (Tim Rentsch)
Groupes : comp.lang.cDate : 09. Jul 2024, 16:52:17
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <864j8yaa8u.fsf@linuxsc.com>
References : 1 2 3 4 5 6 7 8 9 10 11 12 13 14
User-Agent : Gnus/5.11 (Gnus v5.11) Emacs/22.4 (gnu/linux)
Thiago Adams <
thiago.adams@gmail.com> writes:
On 09/07/2024 08:32, Tim Rentsch wrote:
>
Any use of '\0' almost always strikes me as an affectation. It's
like people want to somehow pretend that it's not the same as
just 0.
>
I like to pretend
>
'\0' is not int
2 > 1 is not int
etc
>
I know it is int, but I think this needs a redesign in C.
I strongly encourage you not to do that. Based on past
experience most of your ideas for improvements make
things worse rather than better.