Cipherd@lemmy.ml to Programmer Humor@programming.dev · 2 months agofunctionslemmy.mlimagemessage-square119linkfedilinkarrow-up1661arrow-down19file-text
arrow-up1652arrow-down1imagefunctionslemmy.mlCipherd@lemmy.ml to Programmer Humor@programming.dev · 2 months agomessage-square119linkfedilinkfile-text
minus-squaresave_the_humans@leminal.spacelinkfedilinkEnglisharrow-up23arrow-down2·2 months agoAnyone tried lisp? Looks something like this. ((()))()())))
minus-square[object Object]@lemmy.worldlinkfedilinkarrow-up17·2 months agoRemarkable how if the parenthesis is shifted from lambda() to (lambda), people lose the ability to comprehend things.
minus-squareJankatarch@lemmy.worldlinkfedilinkarrow-up2·2 months agoIsn’t it more like foo(){…} -> (define foo (lambda ())) tbf?
minus-squarestammi@feddit.orglinkfedilinkarrow-up2·2 months agoIn clojure it’s (def (fn [])) or short (defn []).
minus-square[object Object]@lemmy.worldlinkfedilinkarrow-up2·2 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.
Anyone tried lisp? Looks something like this. ((()))()())))
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