Cipherd@lemmy.ml to Programmer Humor@programming.dev · 10 months agofunctionslemmy.mlimagemessage-square95fedilinkarrow-up1639arrow-down19file-textcross-posted to: [email protected]
arrow-up1630arrow-down1imagefunctionslemmy.mlCipherd@lemmy.ml to Programmer Humor@programming.dev · 10 months agomessage-square95fedilinkfile-textcross-posted to: [email protected]
minus-square[object Object]@lemmy.worldlinkfedilinkarrow-up13·10 months agoRemarkable how if the parenthesis is shifted from lambda() to (lambda), people lose the ability to comprehend things.
minus-squareJankatarch@lemmy.worldlinkfedilinkarrow-up2·edit-210 months agoIsn’t it more like foo(){…} -> (define foo (lambda ())) tbf?
minus-square[object Object]@lemmy.worldlinkfedilinkarrow-up1·edit-210 months 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 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