3 ms·
Macros are basically the reason that people like ruby on rails. Every tool has its place.
by zdragnar 4y ago
Macros are basically the reason that people like ruby on rails. Every tool has its place.
- cultofmetatron 4y agometaprogramming in ruby carries a runtime cost. lisp macros (and rust macros) compile and so can be run without drastically decreasing Perf
- zdragnar 4y agoI don't disagree. The post I was replying to effectively said macros are too hard to use outside of small teams. They did have a point- it's not the kind of tool that you reach for on a whim. However, they can be fantastically useful when planned and used with discipline.