Cipherd@lemmy.ml to Programmer Humor@programming.dev · 1 个月前functionslemmy.mlimagemessage-square94linkfedilinkarrow-up1108arrow-down12file-textcross-posted to: programmerhumor@lemmy.ml
arrow-up1106arrow-down1imagefunctionslemmy.mlCipherd@lemmy.ml to Programmer Humor@programming.dev · 1 个月前message-square94linkfedilinkfile-textcross-posted to: programmerhumor@lemmy.ml
minus-square[object Object]@lemmy.worldlinkfedilinkarrow-up2·1 个月前Remarkable how if the parenthesis is shifted from lambda() to (lambda), people lose the ability to comprehend things.
minus-squareJankatarch@lemmy.worldlinkfedilinkarrow-up0·1 个月前Isn’t it more like foo(){…} -> (define foo (lambda ())) tbf?
minus-square[object Object]@lemmy.worldlinkfedilinkarrow-up1·1 个月前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.
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.