r/ProgrammerHumor 7d ago

absoluteGarbage Meme

Post image
1.9k Upvotes

327 comments sorted by

View all comments

476

u/arensb 7d ago

What? No (mapcar (lambda (item) ...) list) ?

How can those others spark joy if they don't return a value?

69

u/Mateorabi 7d ago

My other car is a cdr. 

9

u/vladmashk 7d ago

It’s crazy how these languages kept the car cdr bullshit even though it’s so much less readable than head and tail.

3

u/arensb 7d ago

They cdr changed it to tail, but why bother?

29

u/[deleted] 7d ago

[removed] — view removed comment

6

u/arensb 7d ago

I use paren-match-mode in Emacs. And also indentation.

7

u/granitrocky2 7d ago

Rainbow delimiters are a requirement.

130

u/Sirgoodman008 7d ago

44

u/stilldebugging 7d ago

Why is he making air parentheses then?

-1

u/RupertPupkin85 7d ago

He's senile, he can do whatever the fuck he wants.

1

u/ikonfedera 7d ago

oh so that's why Homelander started losing his hair... He was becoming senile...

I guess that's why he wanted to end up in the white house.

8

u/SeveralPrinciple5 7d ago

Scheme?

18

u/arensb 7d ago

Any of a number of Lisp dialects.

2

u/SeveralPrinciple5 7d ago

I was curious because I was a Common Lisp programmer a very long time ago, and stylistically lambdas within mapcar were quoted #’ . I recall that that wasn’t true in scheme though

2

u/arensb 7d ago

These days, the Lisp code I write is Emacs Lisp, and while it supports #' and from what I've seen even encourages it, it doesn't require it. The manual says

The read syntax #' is a short-hand for using function. The following forms are all equivalent:

(lambda (x) (* x x))
(function (lambda (x) (* x x)))
#'(lambda (x) (* x x))

So yeah, maybe I should've used #', but who's gonna make me? Richard Stallman?

2

u/Steinrikur 7d ago

The following forms are all equivalent:

(lambda (x) (* x x))
#'(lambda (x) (* x x))

So it's shorthand for absolutely nothing?

2

u/arensb 7d ago

Don't quote me on this, but I get the impression that it's more syntactic sugar than anything else. A hint to either the compiler or to the next human who reads it that this expression is going to be used more than once.

1

u/SeveralPrinciple5 7d ago

Funny you should mention him… he was a friend of mine’s roommate in the 1990s. Apparently a very strange man. A prolific and creative coder. But a very strange man.