Warning: mysqli::__construct(): (HY000/1203): User howardkn already has more than 'max_user_connections' active connections in D:\Inetpub\vhosts\howardknight.net\al.howardknight.net\includes\artfuncs.php on line 21
Failed to connect to MySQL: (1203) User howardkn already has more than 'max_user_connections' active connections
Warning: mysqli::query(): Couldn't fetch mysqli in D:\Inetpub\vhosts\howardknight.net\al.howardknight.net\index.php on line 66
Article <20241129142810.00007920@yahoo.com>
Deutsch   English   Français   Italiano  
<20241129142810.00007920@yahoo.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: Michael S <already5chosen@yahoo.com>
Newsgroups: comp.lang.c
Subject: Re: question about linker
Date: Fri, 29 Nov 2024 14:28:10 +0200
Organization: A noiseless patient Spider
Lines: 35
Message-ID: <20241129142810.00007920@yahoo.com>
References: <vi54e9$3ie0o$1@dont-email.me>
	<vi6sb1$148h7$1@paganini.bofh.team>
	<vi6uaj$3ve13$2@dont-email.me>
	<87plmfu2ub.fsf@nosuchdomain.example.com>
	<vi9jk4$gse4$1@dont-email.me>
	<vi9kng$gn4c$1@dont-email.me>
	<87frnbt9jn.fsf@nosuchdomain.example.com>
	<viaqh0$nm7q$1@dont-email.me>
	<877c8nt255.fsf@nosuchdomain.example.com>
	<viasv4$nm7q$2@dont-email.me>
	<vibr1l$vvjf$1@dont-email.me>
	<vic73f$1205f$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 29 Nov 2024 13:28:16 +0100 (CET)
Injection-Info: dont-email.me; posting-host="47ae4f2821c4cd95c460950b0679660e";
	logging-data="1141120"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX1/w7/ud33hzMkKWV9UUNUb8GPTQe9l32PM="
Cancel-Lock: sha1:4cS7PYy/fxDDETv7VzDZ3qAswdc=
X-Newsreader: Claws Mail 4.1.1 (GTK 3.24.34; x86_64-w64-mingw32)
Bytes: 2707

On Fri, 29 Nov 2024 11:04:16 +0000
Bart <bc@freeuk.com> wrote:

> 
> My original point was trying to address why 'const' as used in C
> might be confusing. I was trying to compare how non-mutable variables
> are designated in other languages. There it's a keyword that is part
> of the declaration syntax, not the type syntax.
> 

I don't see your point.
How 'mut' in Rust is different from 'const' in C except for having
opposit polarity?
How 'readonly' in C# is different from 'const' in C?

> I suggested that C is confusing because 'const' looks as though it's 
> like the former, but it's part of the latter. Which also means you
> can have multiple 'const' in a declaration (putting asided repeated
> 'consts').
>

IMHO, any way to mix more than one 'modifier' (not in C standard
meaning of the word, but in more general meaning) is potentially
confusing. It does not matter whether modifier is 'const' or '*' or []
or (). 
However not having this ability forces programmer to use too many
typedefs. Multiple typedef are not too bad by themselves, the problem
with them is that programmer has to invent many type names and then
reader has to remember them. So in practice such enforcement ends up
less readable rather than more readable.

> So objectively, it IS more complicated than elsewhere with more scope 
> for getting it wrong.
>