From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, HTML_MESSAGE,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 22098 invoked from network); 6 Jul 2021 04:45:28 -0000 Received: from minnie.tuhs.org (45.79.103.53) by inbox.vuxu.org with ESMTPUTF8; 6 Jul 2021 04:45:28 -0000 Received: by minnie.tuhs.org (Postfix, from userid 112) id C30779CA5C; Tue, 6 Jul 2021 14:45:25 +1000 (AEST) Received: from minnie.tuhs.org (localhost [127.0.0.1]) by minnie.tuhs.org (Postfix) with ESMTP id C63B79C9F2; Tue, 6 Jul 2021 14:44:47 +1000 (AEST) Authentication-Results: minnie.tuhs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=bsdimp-com.20150623.gappssmtp.com header.i=@bsdimp-com.20150623.gappssmtp.com header.b="He1LD85k"; dkim-atps=neutral Received: by minnie.tuhs.org (Postfix, from userid 112) id F09A59C9F2; Tue, 6 Jul 2021 14:44:43 +1000 (AEST) Received: from mail-qv1-f41.google.com (mail-qv1-f41.google.com [209.85.219.41]) by minnie.tuhs.org (Postfix) with ESMTPS id 680DA9C9F0 for ; Tue, 6 Jul 2021 14:44:42 +1000 (AEST) Received: by mail-qv1-f41.google.com with SMTP id h18so9219261qve.1 for ; Mon, 05 Jul 2021 21:44:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=090CGXBy8x0A7NOgQUOXw8F0T9C7XwqRVsxwy92IcPk=; b=He1LD85kFzh5+RJGGX/9RItBQUvzemyf5Et0bWncdoUWRcTO/dbGO1KjdYYaWVVrx7 n4jkenJrNXxd9QN9C1JPaQDxc/hTGRrRbWsOJX8JNkCWVVnfsGAl5X7+I7Vio44+lRHm ItIuI0d/PQOyBVVizDaj+bNxy5bXvoDxr4cOpphrTnIj5ce7+LVCEHqg2w4hhuj1dRfP eG1xaR+1DwPRUHLWu+DeJ3CRWIzX8P3k80H3yTZ2EUxx5MtXkn9rCs4KH59NvJV/dxV2 ONMvTYAM/NriU+yIIFX7Zax2iiFdN491uHXDYecQnGuHz33fxBWU+ZgIMIqw/j2LZg15 GxtQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=090CGXBy8x0A7NOgQUOXw8F0T9C7XwqRVsxwy92IcPk=; b=VX7DeuajpkS5WEObQdCCQrQ8jHVTvAw0wWawtdRGPQoynfIBlnzU8t9HtfYzJvzOtO FbmYDWXNXhEpBukEzQ8QJzvWGLIyNiLuXFM6Y/I4gE915ha8ZPTmWCD4vJy30xVf/Z+/ lTrq2a8kL8092BIUFpt4xNA050t44pTSYD66FV2YHcf748ZPMFxeZetM/uouSY9al+iC FHxXOCagxsoh9k9d6pzNiTgx7hl2zSbxeNnAyfX4ufsgaZYVT4eOloksUNALNUSQcvFs yHULkIk0IAoLsxnVa+ZFjhUT2961ENfSUiV5IE/SJKRbUy1VFJuQXtD4q0y0wgXXcsCn rAAg== X-Gm-Message-State: AOAM531joTL131tnX0RXKY/+BY/Hv5v1/AmRJLEobUkaTX3mRuc1V+e5 qxQsNLe0DS7Yajc40AHCDeScqiqDjdjCyBljtUt/FA== X-Google-Smtp-Source: ABdhPJzmvPqKNxLHBVEUaIcLMBcSNXwoHCk2OsOjcZL8fRnOqAkEqXBDw/NSgkgerCOi3ri6qTToYmf+Gg4389fgpvQ= X-Received: by 2002:a05:6214:29e6:: with SMTP id jv6mr16100868qvb.28.1625546681316; Mon, 05 Jul 2021 21:44:41 -0700 (PDT) MIME-Version: 1.0 References: <20210702213648.GW817@mcvoy.com> <20210705002119.GL817@mcvoy.com> <20210705034751.GU817@mcvoy.com> <20210705134522.nzyIC%steffen@sdaoden.eu> In-Reply-To: From: Warner Losh Date: Mon, 5 Jul 2021 22:44:29 -0600 Message-ID: To: Dan Stromberg Content-Type: multipart/alternative; boundary="0000000000008185b605c66d1459" Subject: Re: [TUHS] Is C obsolete? (was Re: [tuhs] The Unix shell: a 50-year view) X-BeenThere: tuhs@minnie.tuhs.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: The Unix Heritage Society mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: The Unix Heritage Society mailing list Errors-To: tuhs-bounces@minnie.tuhs.org Sender: "TUHS" --0000000000008185b605c66d1459 Content-Type: text/plain; charset="UTF-8" On Mon, Jul 5, 2021, 10:37 PM Dan Stromberg wrote: > > On Mon, Jul 5, 2021 at 2:29 PM Clem Cole wrote: > >> >> On Mon, Jul 5, 2021 at 4:16 PM Dan Stromberg wrote: >> >>> A null-terminated array of char is a petri dish. A proper string type >>> is more like a disinfectant. >>> >> Hrrmpt.... maybe (in theory), but I can say that never seen it really >> work in practice -- bwk in Why Pascal is Not My Favorite Programming >> Language describes much >> of the practical realities of this sort of choice: >> > > I think language designers since Pascal have learned from Pascal's mistake > there. > > Supposedly even Borland's TurboPascal had better strings than vanilla > Pascal. > That's true. You could do things in Turbo Pascal you couldn't do in standard Pascals. It was close enough to C that a lot of system level code was written in it. A bit verbose, but serviceable. Warner > --0000000000008185b605c66d1459 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


On Mon, Jul 5, 2021, 10:37 PM Dan Stromberg <drsalists@gmail.com> wrote:
On Mon, = Jul 5, 2021 at 2:29 PM Clem Cole <clemc@ccc.com> wrote:

On Mon, Jul 5, 2021= at 4:16 PM Dan Stromberg <drsalists@gmail.com> wrote:
=
A null-terminated array of char is a petri dish.=C2=A0 A proper st= ring type is more like a disinfectant.
Hrrmpt.... maybe (in theory),= but I can say that never seen it really work in practice --=C2=A0 bwk in= =C2=A0Why Pascal is Not My Favorite Programming Langua= ge=C2=A0describes=C2=A0much of the practical realities of this sort of = choice:

I think language = designers since Pascal have learned from Pascal's mistake there.
<= div>
Supposedly even Borland's TurboPascal had better str= ings than vanilla Pascal.

That's true. You could do th= ings in Turbo Pascal you couldn't do in standard Pascals. It was close = enough to C that a lot of system level code was written in it. A bit verbos= e, but serviceable.=C2=A0

Warner=C2=A0
--0000000000008185b605c66d1459--