Hacker News new | past | comments | ask | show | jobs | submit login

This seems just like the general argument against extreme cleverness. Don't be cleverer than you must, or nobody else will understand it and you won't be able to debug it.

I think relatively simple macros are quite useful, but I agree with his argument for complex ones. Where the line is between handwavy categories like "relatively simple" and "complex", is beyond me at the moment.




Right. He's not saying, "macros are bad", he's saying, "macros often lead to code that's very hard to maintain, and in the end many are more trouble than they're worth". You can still do very powerful things without them in most cases; as far as I recall, SICP has no macros.

Code conventions go a long way, though - with-* macros are easily understood, for example.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

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

Search: