The real interesting debate is between ((f) 1) and f()(1).

☆ Yσɠƚԋσʂ ☆
creator
link
fedilink
-61Y

I personally find ((f) 1) easier to read. You just go inside out, evaluate f, then pass 1 as the argument to the output of f. There’s no ambiguity regarding order of evaluation there.

As a parentheses hater my personal hell would be having to audit and refactor a lisp codebase

My work maintains a legacy AutoCAD addin written in Lisp… we are considering dropping support because it’s so difficult to maintain with the original dev gone

Kale
link
fedilink
English
21Y

Oof. Is that the official plugin language? Siemens NX uses “grip” which is a fork of TCL. And they require purchase of a pricy package to sign and compile code so NX will run it, so we only had one programmer for our custom grip functions.

☆ Yσɠƚԋσʂ ☆
creator
link
fedilink
-21Y

Having worked with Clojure for over a decade now, I find it far easier to refactor than most other languages I’ve touched.

))))))))))))))))))))))))))))))))))))))))))))))

☆ Yσɠƚԋσʂ ☆
creator
link
fedilink
171Y

I love how much of a kamikaze this is: “yeah that thing LISP does terribly? Non-LISP languages do it too!”

☆ Yσɠƚԋσʂ ☆
creator
link
fedilink
-31Y

Except LISP doesn’t do it terribly, and in my experience there are a lot less parens and other separators than in most languages.

Ok… but the comic doesn’t say that…

☆ Yσɠƚԋσʂ ☆
creator
link
fedilink
-51Y

The comic doesn’t say anything about Lisp doing it terribly either. It’s saying that people who complain about parens are dealing with far worse in mainstream languages.

It quite literally says “LISP is ugly and confusing with those endless parentheses” and then fails to refute that claim

☆ Yσɠƚԋσʂ ☆
creator
link
fedilink
-21Y

It’s making fun of people who say that lisp is ugly and confusing. There’s nothing to refute there either since the claim is nonsensical as anybody who’s actually used lisp knows.

Also this just looks like bad code, not a limiting feature of the language.

Butt Pirate
link
fedilink
101Y

deleted by creator

☆ Yσɠƚԋσʂ ☆
creator
link
fedilink
-71Y

Looks like a typical Js/Ts codebase to me. :)

@airbussy@lemmy.one
link
fedilink
English
71Y

Then there’s Haskell where arguments to a function are given with spaces

@jana@leminal.space
link
fedilink
English
21Y

It makes sense if you just think of everything as a function.

I have fond memories of RPL on the HP48 calculators where you would give arguments as a stack, then call the function. Something like (a+b)*c could be written C A B + * Such fun!

Kale
link
fedilink
English
11Y

Reverse Polish notation, right? Operand operand operator?

That’s the one. The Wikipedia article has some extensive examples, too.

Its weird syntax prepared us well to face the horror of assembly language later on, so I have a certain fondness for it. That and I had absolutely no point of comparison at the time, haha!

Create a post

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

  • Posts must be relevant to programming, programmers, or computer science.
  • No NSFW content.
  • Jokes must be in good taste. No hate speech, bigotry, etc.
  • 1 user online
  • 120 users / day
  • 257 users / week
  • 744 users / month
  • 3.72K users / 6 months
  • 1 subscriber
  • 1.48K Posts
  • 32.5K Comments
  • Modlog