Deutsch English Français Italiano |
<vgv6qr$1h7ol$1@dont-email.me> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!eternal-september.org!feeder2.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Janis Papanagnou <janis_papanagnou+ng@hotmail.com> Newsgroups: comp.unix.shell,comp.unix.programmer,comp.lang.misc Subject: Re: Command Languages Versus Programming Languages Date: Tue, 12 Nov 2024 10:23:38 +0100 Organization: A noiseless patient Spider Lines: 43 Message-ID: <vgv6qr$1h7ol$1@dont-email.me> References: <uu54la$3su5b$6@dont-email.me> <87edbtz43p.fsf@tudado.org> <0d2cnVzOmbD6f4z7nZ2dnZfqnPudnZ2d@brightview.co.uk> <uusur7$2hm6p$1@dont-email.me> <vdf096$2c9hb$8@dont-email.me> <87a5fdj7f2.fsf@doppelsaurus.mobileactivedefense.com> <ve83q2$33dfe$1@dont-email.me> <vgsbrv$sko5$1@dont-email.me> <vgtslt$16754$1@dont-email.me> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Date: Tue, 12 Nov 2024 10:23:39 +0100 (CET) Injection-Info: dont-email.me; posting-host="3d587463838b5a57dfcaac7f39e268d0"; logging-data="1613589"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19z+uuiyZWrk2C0vyj+8FLt" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 Cancel-Lock: sha1:rlmVJdAJOygbp1CdrBuENx1e9UY= X-Enigmail-Draft-Status: N1110 In-Reply-To: <vgtslt$16754$1@dont-email.me> Bytes: 3302 On 11.11.2024 22:24, Lawrence D'Oliveiro wrote: > On Mon, 11 Nov 2024 07:31:13 -0000 (UTC), Sebastian wrote: > >> In comp.unix.programmer Muttley@dastartdlyhq.org wrote: >> >>> [Perl’s] syntax is also a horrific mess. Larry took the worst parts of >>> C and shell syntax and mashed them together. >> >> I think you've identified the one language that Python is better than. > > In terms of the modern era of high-level programming, Perl was the > breakthrough language. Before Perl, BASIC was considered to be an example > of a language with “good” string handling. After Perl, BASIC looked old > and clunky indeed. I'm not, erm.., a fan of Perl or anything, but comparing it to BASIC is way off; Perl is not *that* bad. - N.B.: Of course no one can say what "BASIC" actually is given the many variants and dialects. - I'm sure you must have some modern variant in mind that might have little to do with the various former BASIC dialects (that I happened to use in the 1970's; e.g., Wang, Olivetti, Commodore, and a mainframe that I don't recall). It's more interesting what Perl added compared to BRE/ERE, what Unix provided since its beginning (and long before Perl). > > Perl was the language that made regular expressions sexy. Because it made > them easy to use. For those of us who used regexps in Unix from the beginning it's not that shiny as you want us to buy it; Unix was supporting Chomsky-3 Regular Expressions with a syntax that is still used in contemporary languages. Perl supports some nice syntactic shortcuts, but also patterns that exceed Chomsky-3's; too bad if one doesn't know these differences and any complexity degradation that may be bought with it. More interesting to me is the fascinating fact that on some non-Unix platforms it took decades before regexps got (slooooowly) introduced (even in its simplest form). Janis