3 ms·
> Unpopular opinion: I hate meta programming Come to the dark side and start programming Clojure. Because there, meta programming is no different than regular
by hellofunk 8y ago
> Unpopular opinion: I hate meta programming
Come to the dark side and start programming Clojure. Because there, meta programming is no different than regular programming -- your macros are just normal Clojure functions that happen to run at compile time, and they have the full language to do whatever you want.
- moomin 8y agoEven in Clojure, you probably shouldn’t if there’s an alternative. Full disclosure: I have written useful Clojure macros.
- hellofunk 8y agoFunctions are ultimately more powerful since you can store them, pass them to other functions, partially apply them, etc. You can't do that with macros, of course. But macros allow very repetitive stuff to be automated which is a real productivity win.
- jrq 8y agoBut there's no types! I've never tried clojure, but I've done scheme before. Maybe I should... Thanks!