Cipherd@lemmy.ml to Programmer Humor@programming.dev · 15 hours agofunctionslemmy.mlimagemessage-square52linkfedilinkarrow-up1384arrow-down15file-text
arrow-up1379arrow-down1imagefunctionslemmy.mlCipherd@lemmy.ml to Programmer Humor@programming.dev · 15 hours agomessage-square52linkfedilinkfile-text
minus-squareJankatarch@lemmy.worldlinkfedilinkarrow-up1·29 minutes agoIsn’t it more like foo(){…} -> (define foo (lambda ())) tbf?
minus-squareSlurpingPus@lemmy.worldlinkfedilinkarrow-up1·18 minutes 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.
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.