Article View: comp.lang.c
Article #2037Re: C and its peasant 'ancestors'
From: Michael S
Date: Mon, 30 Nov 2026 20:40
Date: Mon, 30 Nov 2026 20:40
24 lines
2358 bytes
2358 bytes
On Mon, 30 Nov 2026 18:35:21 -0000 (UTC) Lawrence D’Oliveiro <ldo@nz.invalid> wrote: > On Mon, 30 Nov 2026 07:02:33 +0100, Bonita Montero wrote: > > > Am 30.11.2026 um 00:10 schrieb Dan Cross: > > > >> To tie this back to C, C is a weakly-typed language; add a number > >> to a string literal and the result is a pointer. This has been a > >> source of a _huge_ number of bugs over the years. > >> > > That's a matter of semantics and not of stongly vs. weakly typed. > > Python doesn’t allow the same mistake. Yes, it is a loophole of the C > type system. So yes, you can say that, in this instance, C is “weakly > typed”. May be, not in this specific case, but there are places where Python does implicit type conversions. In particular, it routinely implicitly converts int (i.e. bigint) to floating-point. If we follow the most rigorous definition of strong typing, implicit conversions are verboten.
Technical Details
Message-ID:
<20261130224023.00000b80@yahoo.com>Path:
mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.hispagatos.org!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mailReferences:
<11dup6q$v4j9$1@dont-email.me> <20261130000723.0000290f@yahoo.com> <11eia4j$4k4$1@reader2.panix.com> <20261130010153.00003664@yahoo.com> <11eibdf$snv$1@reader2.panix.com> <11ej3ho$5jeo$1@raubtier-asyl.eternal-september.org> <11ekfl8$mq5n$3@dont-email.me>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.hispagatos.org!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail From: Michael S <already5chosen@yahoo.com> Newsgroups: comp.lang.c Subject: Re: C and its peasant 'ancestors' Date: Mon, 30 Nov 2026 22:40:23 +0200 Organization: A noiseless patient Spider Lines: 24 Message-ID: <20261130224023.00000b80@yahoo.com> References: <11dup6q$v4j9$1@dont-email.me> <20261130000723.0000290f@yahoo.com> <11eia4j$4k4$1@reader2.panix.com> <20261130010153.00003664@yahoo.com> <11eibdf$snv$1@reader2.panix.com> <11ej3ho$5jeo$1@raubtier-asyl.eternal-september.org> <11ekfl8$mq5n$3@dont-email.me> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Injection-Date: Mon, 30 Nov 2026 20:40:23 +0000 (UTC) Injection-Info: dont-email.me; logging-data="877015"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18r54WoQ2ruN1yRASHkrjg0l2mvnk2r4xA="; posting-host="af37ef6e2a2298e04b8c13cc1e0c97d7" Cancel-Lock: sha1:oSnMPkAbvPgOPX6hEjkajuNWjjM= sha256:bXtAuSGzFhn13ysO4PgYf6DomB95iWvShx0+S2+UsNQ= sha1:QcRSyRCUyCWYh5EzLEcGaZvJBdo= sha256:nH+Y6AibGkna4Cq9+ICfa8BojkFNfV4Tjqg7micwmI0= X-Newsreader: Claws Mail 4.1.1 (GTK 3.24.34; x86_64-w64-mingw32)