Sujet : Re: Command Languages Versus Programming Languages
De : ldo (at) *nospam* nz.invalid (Lawrence D'Oliveiro)
Groupes : comp.unix.shell comp.unix.programmer comp.lang.miscDate : 20. Nov 2024, 05:34:31
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vhjosn$29cfe$1@dont-email.me>
References : 1 2 3 4 5 6 7 8 9 10
User-Agent : Pan/0.160 (Toresk; )
On Tue, 19 Nov 2024 18:43:48 -0800, Randal L. Schwartz wrote:
"Lawrence" == Lawrence D'Oliveiro <ldo@nz.invalid> 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.