🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.c
Article #1963

Re: C and its peasant 'ancestors'

#1963
From: Dan Cross
Date: Sun, 29 Nov 2026 04:22
51 lines
2938 bytes
In article <20261128201354.000064be@yahoo.com>,
Michael S  <already5chosen@yahoo.com> 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.
>
>Weak or strong - it's not very important in practice.

You mean static versus dynamic.  Strong versus weak is a
different axis.

And I profoundly disagree.  I've seen too many errors in dynamic
languages hit production that would have been trivially caught
in a statically typed language.

>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.

That's all well and good until you're doing an emergency push to
prod to stop a cascading error taking down a live service in an
entire data center because someone left some code in that tried
to do arithmetic on a tuple.

>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.

Or small programs running big services.

	- Dan C.
Technical Details
Message-ID: <11eg9a1$r3d$1@reader2.panix.com>
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!weretis.net!feeder9.news.weretis.net!panix!.POSTED.spitfire.i.gajendra.net!not-for-mail
References: <11dup6q$v4j9$1@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!weretis.net!feeder9.news.weretis.net!panix!.POSTED.spitfire.i.gajendra.net!not-for-mail
From: cross@spitfire.i.gajendra.net (Dan Cross)
Newsgroups: comp.lang.c
Subject: Re: C and its peasant 'ancestors'
Date: Sun, 29 Nov 2026 04:22:25 -0000 (UTC)
Organization: PANIX Public Access Internet and UNIX, NYC
Message-ID: <11eg9a1$r3d$1@reader2.panix.com>
References: <11dup6q$v4j9$1@dont-email.me> <11eds8o$2ahsb$2@raubtier-asyl.eternal-september.org> <11eehae$t2g$1@reader2.panix.com> <20261128201354.000064be@yahoo.com>
Injection-Date: Sun, 29 Nov 2026 04:22:25 -0000 (UTC)
Injection-Info: reader2.panix.com; posting-host="spitfire.i.gajendra.net:166.84.136.80";
	logging-data="27757"; mail-complaints-to="abuse@panix.com"
X-Newsreader: trn 4.0-test77 (Sep 1, 2010)
Originator: cross@spitfire.i.gajendra.net (Dan Cross)