News for hackers. Stuff that matters.
Re:The Origin of CAR and CDR in Lisp (2005) by brudgers on Tuesday December 26, 2017 @05:24PM (#16011434)
Erlang uses a {H|T} pattern matching convention in lieu of language keywords. For what it is worth (limit x | x -> 0), I think Erlang is an exceptionally elegant piece of engineering as engineering. But it's not the 90% use case. Then again, neither is Lisp, ML, or Rust. The 90% use case these days is Javascript. Which I would hesitate to associate with the phrase "elegant piece of engineering" without an "in" prefix.

Python and Javascript may have pairs. They just live at the bottom of a Turing Tarpit.

Re:The Origin of CAR and CDR in Lisp (2005) by macintux on Tuesday December 26, 2017 @10:00PM (#16012526)
I rarely used Python before the last few months, but I've already stumbled upon a great tragedy in the 3.x migration.

Although few know it, and fewer use it, Python 2.x allowed tuples to be unpacked in function heads, like Erlang. Since my last job was 100% Erlang, I stumbled into using it without knowing any better.

I decided a couple of months later that since it was a new project, I really should convert to Python 3, whereupon I discovered that feature had been removed due to parsing complexity and "because no one uses it."

Sigh.

Re:The Origin of CAR and CDR in Lisp (2005) by ethagnawl on Wednesday December 27, 2017 @12:32AM (#16013076)
This feature is still good to know about for use on legacy projects. Thanks for sharing!
Re:The Origin of CAR and CDR in Lisp (2005) by macintux on Wednesday December 27, 2017 @09:59AM (#16015065)
With Python 2 due to be EOL'd in a couple of years, I'm not sure I should feel good about encouraging more use of it!