Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> The consensus in the community right now is to not get carried away with macros and DSLs. Even if your library provides a DSL, it should be based on a functional API that is mostly usable without macros.

Yup. But what people say and what people do is often not the same thing :).



Sure. I just wanted to stress the point that macros are local in their scope. It's nothing like monkey-patching in Ruby where importing a module can change all divisions from floats to rational numbers.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: