cm0002@lemmy.world to Programmer Humor@programming.dev · 1 year agoWhen people encounter Lisp syntax for the first timeimagemessage-square25linkfedilinkarrow-up1307arrow-down16cross-posted to: programmerhumor@lemmy.ml
arrow-up1301arrow-down1imageWhen people encounter Lisp syntax for the first timecm0002@lemmy.world to Programmer Humor@programming.dev · 1 year agomessage-square25linkfedilinkcross-posted to: programmerhumor@lemmy.ml
minus-squareRecallMadness@lemmy.nzlinkfedilinkarrow-up11·1 year agoThreading is a great case for a macro. (-> x (* 2) (/ 3) (- 1)) Is the same as (- (/ (* x 2) 3) 1)
minus-squareMika@piefed.calinkfedilinkEnglisharrow-up3arrow-down2·1 year agoSure it’s not like it has no uses, but it’s something languages have built-in as syntax sugar or operators, and you rarely need to built your own macro for anything.
minus-squareJerkface (any/all)@lemmy.calinkfedilinkEnglisharrow-up5arrow-down1·edit-27 months agoRemoved by mod
minus-squareJerkface (any/all)@lemmy.calinkfedilinkEnglisharrow-up2arrow-down1·edit-27 months agoRemoved by mod
Threading is a great case for a macro.
(-> x (* 2) (/ 3) (- 1))Is the same as
(- (/ (* x 2) 3) 1)Sure it’s not like it has no uses, but it’s something languages have built-in as syntax sugar or operators, and you rarely need to built your own macro for anything.
Removed by mod
What does it have to do with lisp?
Removed by mod