Defmacro Clojure Tutorial - Code that writes code
on the code again
Defmacro in Clojure allows you to write code that outputs code 🤯
This is a video on how to create and expand macros
Code: https://gist.github.com/danownsthisspace/5c41c9aa17fa57e2ce1528405dd85db9 Blog post: https://daniel-amber.com/blog/posts/clojure-defmacro/
00:00 intro 00:10 what are macros? 00:45 create a function that delays the return 01:55 create a function that records the time taken 04:05 Syntax Quoting 05:24 Convert time-taken function to macro 07:10 Cater for multiple expressions to be passed through to time-taken 09:50 Begging for subs ... https://www.youtube.com/watch?v=GBdkaFpO_1s
2022-02-18
0.0 LBC
Copyrighted (contact publisher)
61385433 Bytes