this post was submitted on 01 Oct 2023
345 points (97.0% liked)

Programmer Humor

32472 readers
613 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 

The audacity to do such a thing…

you are viewing a single comment's thread
view the rest of the comments
[–] yogsototh@lemmy.world 19 points 1 year ago* (last edited 1 year ago) (1 children)

I think it should work in Clojure

(doseq [i (range 10)]
  `(def ~(str "var-" i) i))
[–] Azzu@lemm.ee 15 points 1 year ago (1 children)

Everything goes with macros :D

[–] avonarret1@programming.dev 6 points 1 year ago

That rhymes! :D