this post was submitted on 10 Sep 2025
281 points (98.0% liked)

Programmer Humor

26265 readers
719 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] RecallMadness@lemmy.nz 10 points 1 day ago (4 children)

Threading is a great case for a macro.

(-> x (* 2) (/ 3) (- 1))

Is the same as (- (/ (* x 2) 3) 1)

[–] Mika@piefed.ca 1 points 1 day ago (3 children)

Sure it's not like it has no uses, but it's something languages have built-in as syntax sugar or operators, and you rarely need to built your own macro for anything.