Article View: comp.lang.c
Article #1962Re: C and its peasant 'ancestors'
From: Janis Papanagnou
Date: Sun, 29 Nov 2026 04:03
Date: Sun, 29 Nov 2026 04:03
48 lines
3363 bytes
3363 bytes
On 2026-11-28 19:13, Michael S wrote: > On Sat, 28 Nov 2026 12:26:54 -0000 (UTC) > cross@spitfire.i.gajendra.net (Dan Cross) wrote: > >> In article <11eds8o$2ahsb$2@raubtier-asyl.eternal-september.org>, >> Bonita Montero <Bonita.Montero@gmail.com> wrote: >>> Am 28.11.2026 um 06:50 schrieb Lawrence D’Oliveiro: >>> >>>> It *is* strongly-typed, and compiled. >>> >>> Python is weakly typed. >>> Type annotations aren't enforced by the compiler. >> >> Lawrence is an idiot, but he's right about this. Python >> is _strongly_ typed, but it is not _statically_ typed. >> >> - Dan C. >> > > Weak or strong - it's not very important in practice. > That is, it is important that in python all type errors are caught. > Eventually. During execution of statements in question. Unless hidden > by one or another sort of polymorphism. This reads as if you are advocating that it would be sufficient to notify errors during runtime, and abort execution as LDO's example seems to indicate. (I'm thinking of what our customers back then would have said if our systems behaved that way for these types of errors. Of course we used only statically typed languages for our professional software. It certainly was important in practice to reduce errors beforehand and not gamble with our reputation.) Janis > But then again, 95% of such errors are caught at during execution even > in C (I am not talking about out-of-bound accesses, those are a > separate battle), at least as long a C is running on platform with > memory protection. > Yes, %5 matter, and knowing about 100% gives python programmer a warm > feeling, but more so in theory than in practice. > > On the other hand, the fact that at compile time (or pre-compile time, I > don't know official term) Python catches very few type errors (if at > all) is very important in practice, although much more so for big > programs than for small ones. > >
Technical Details
Message-ID:
<11eg872$1c0gl$4@dont-email.me>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> <11edosp$29lc0$1@raubtier-asyl.eternal-september.org> <11edq3n$29u38$3@dont-email.me> <11eds8o$2ahsb$2@raubtier-asyl.eternal-september.org> <11eehae$t2g$1@reader2.panix.com> <20261128201354.000064be@yahoo.com>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: Janis Papanagnou <janis_papanagnou+ng@hotmail.com> Newsgroups: comp.lang.c Subject: Re: C and its peasant 'ancestors' Date: Sun, 29 Nov 2026 05:03:46 +0100 Organization: A noiseless patient Spider Lines: 48 Message-ID: <11eg872$1c0gl$4@dont-email.me> References: <11dup6q$v4j9$1@dont-email.me> <11edosp$29lc0$1@raubtier-asyl.eternal-september.org> <11edq3n$29u38$3@dont-email.me> <11eds8o$2ahsb$2@raubtier-asyl.eternal-september.org> <11eehae$t2g$1@reader2.panix.com> <20261128201354.000064be@yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Sun, 29 Nov 2026 04:03:47 +0000 (UTC) Injection-Info: dont-email.me; logging-data="1442325"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+pN968boWXVkR5PxypsXE5"; posting-host="59888851cb396c11d965f94588159699" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:GkcSiyDxvIvkVTMmUSBX4vAVaA4= sha256:N1ny+jnGKVfbU4fQfYoLqEzeUiq0IyfTWSaLmv9vjTg= sha1:8ZORUstkptCig/Jx+T8Q+1081GM= sha256:hG/3TXusFLHaMCfQQNSGJHnvU6QhcuqKUl9Rxhb47xw= In-Reply-To: <20261128201354.000064be@yahoo.com> Content-Language: en-US