Re: Unlearning Pattern Matching



On 29 Jun, 15:02, Dan Bensen <randomg...@xxxxxxxxxxxxxx> wrote:
Wow, pattern matching is EASY in Lisp! It's like you can write
your own language. It's almost hard to believe a language can be
as powerful and flexible as Lisp. This ML-style pattern matcher
takes just a few hours to write, even less for a real Lisp guru.
The implementation is only a couple dozen lines of code, and it
does the basics of pattern matching that has to be built-in in
other languages. Lisp is a truly remarkable language.


Obviously you haven't read Dijkstra's PATTERN MATCHING considered
harmful.

From the highlights:

The Occasion of which Insufferable Disaster, after a furious Enquiry,
and Discussion of the Point by the Learned of the Faculty, we can
Attribute to nothing more than the Excessive use of that Newfangled,
Abominable, Heathenish coding style called PATTERN MATCHING, which
Riffling Nature of her Choicest Treasures, and Drying up the Radical
Moisture, has so Eunucht our Husbands, and Cripple our more kind
Gallants, that they are become as Impotent as Age, and as unfruitful
as those Desarts whence that unhappy Berry is said to be brought.

For the continual flipping of this pitiful notation is enough to
bewitch Men of two and twenty, and tie up the Codpiece-points without
a Charm. It renders them that us it as Lean as Famine, as Rivvel'd as
Envy, or an old meager Hagg over-ridden by an Incubus. They come from
it with nothing moist but their snotty Noses, nothing stiffe but their
Joints, nor standing but their Ears: They pretend 'twill keep them
Waking, but we find by scurvy Experience, they sleep quietly enough
after it. A Betrothed Queen might trust her self a bed with one of
them, without the nice Caution of a sword between them: nor can call
all the Art we use revive them from this Lethargy, so unfit they are
for Action, that like young Train-band-men when called upon Duty,
their Ammunition is wanting; peradventure they Present, but cannot
give Fire, or at least do but flash in the Pan, instead of doing
executions.

.



Relevant Pages

  • Re: SBCL is now faster than Java, as fast as Ocaml, and getting better
    ... amount to learn from Mathematica because it addressed so many of Lisp's ... What do you think Mathematica can learn from Lisp? ... are overestimating the "language merits" of Mathematica as far as its ... go beyond our discussion of Lisp, MLish and pattern matching. ...
    (comp.lang.lisp)
  • Re: SBCL is now faster than Java, as fast as Ocaml, and getting better
    ... If you are trying to compare my OCaml code with your Lisp translation then ... Lispers not only fail to understand the benefits of pattern matching ... Scala is a language on its own as is F#. ... Look at camlp4, for example. ...
    (comp.lang.lisp)
  • Re: SBCL is now faster than Java, as fast as Ocaml, and getting better
    ... From which it is clearly impossible to decipher a working program. ... make Lisp look less stupid. ... But that is a MLish language. ... You are not seeing pattern matching popping up in Java 7. ...
    (comp.lang.lisp)
  • Unlearning Pattern Matching
    ... pattern matching is EASY in Lisp! ... It's almost hard to believe a language can be ... patrn a b c)) ...
    (comp.lang.lisp)
  • Re: merits of Lisp vs Python
    ... many other interesting features that haven't originated from Lisp (e.g. ... Various pattern matching ideas have been implement (not always first, ... can be associated with elementary patterns which check relationships ...
    (comp.lang.lisp)