this post was submitted on 22 Nov 2025
651 points (98.7% liked)

Programmer Humor

27690 readers
495 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
 

cross-posted from: https://lemmy.ml/post/39334581

you are viewing a single comment's thread
view the rest of the comments
[–] Jankatarch@lemmy.world 2 points 1 week ago* (last edited 1 week ago) (2 children)

Isn't it more like
foo(){…} -> (define foo (lambda ()))
tbf?

[–] SlurpingPus@lemmy.world 2 points 1 week ago* (last edited 1 week ago)

In Emacs Lisp, you use one of these two:

(defun funcname (arg1 arg2) (+ arg1 arg2))

(lambda (arg1 arg2) (+ arg1 arg2))

— with the latter typically being an argument to another function or macro.

[–] stammi@feddit.org 2 points 1 week ago

In clojure it's (def (fn [])) or short (defn []).