Cipherd@lemmy.ml to Programmer Humor@programming.dev · 1 day agofunctionslemmy.mlimagemessage-square109fedilinkarrow-up1588arrow-down18file-text
arrow-up1580arrow-down1imagefunctionslemmy.mlCipherd@lemmy.ml to Programmer Humor@programming.dev · 1 day agomessage-square109fedilinkfile-text
minus-squareSlurpingPus@lemmy.worldlinkfedilinkarrow-up15·21 hours agoRemarkable how if the parenthesis is shifted from lambda() to (lambda), people lose the ability to comprehend things.
minus-squareJankatarch@lemmy.worldlinkfedilinkarrow-up2·edit-219 hours agoIsn’t it more like foo(){…} -> (define foo (lambda ())) tbf?
minus-squarestammi@feddit.orglinkfedilinkarrow-up2·15 hours agoIn clojure it’s (def (fn [])) or short (defn []).
minus-squareSlurpingPus@lemmy.worldlinkfedilinkarrow-up1·edit-218 hours agoIn 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.
Remarkable how if the parenthesis is shifted from
lambda()to(lambda), people lose the ability to comprehend things.Isn’t it more like
foo(){…}->(define foo (lambda ()))tbf?
In clojure it’s (def (fn [])) or short (defn []).
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.
deleted by creator