Path: ...!news.misty.com!weretis.net!feeder9.news.weretis.net!news.quux.org!eternal-september.org!feeder2.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Lawrence D'Oliveiro Newsgroups: comp.unix.shell,comp.unix.programmer,comp.lang.misc Subject: Re: Command Languages Versus Programming Languages Date: Wed, 20 Nov 2024 04:34:31 -0000 (UTC) Organization: A noiseless patient Spider Lines: 16 Message-ID: References: <87edbtz43p.fsf@tudado.org> <0d2cnVzOmbD6f4z7nZ2dnZfqnPudnZ2d@brightview.co.uk> <87a5fdj7f2.fsf@doppelsaurus.mobileactivedefense.com> <86frnmmxp7.fsf@red.stonehenge.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Date: Wed, 20 Nov 2024 05:34:32 +0100 (CET) Injection-Info: dont-email.me; posting-host="c8a5d8f8287a46a043b46813003956ce"; logging-data="2404846"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19RAG3UPEGL/TNHmkXQDLBp" User-Agent: Pan/0.160 (Toresk; ) Cancel-Lock: sha1:XMR5qAclUg6kEDL11yedBynYA4c= Bytes: 2139 On Tue, 19 Nov 2024 18:43:48 -0800, Randal L. Schwartz wrote: >>>>>> "Lawrence" == Lawrence D'Oliveiro writes: > > Lawrence> Perl was the language that made regular expressions > Lawrence> sexy. Because it made them easy to use. > > I'm often reminded of this as I've been coding very little in Perl these > days, and a lot more in languages like Dart, where the regex feels like > a clumsy bolt-on rather than a proper first-class citizen. Python has regexes as a bolt-on -- a library module, not a core part of the language. But I think the way it leverages the core language -- e.g. being able to iterate over pattern matches, and collecting information about matches in a “Match” object -- keeps it quite useful in a nicely functional way.