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

I don't know about "every time"; it's more that they should be used judiciously. Using them to allow you to have two different functions that perform two different calculations but bear the same name wouldn't qualify as judicious use in my book.

There are similar problems with getting a bit too happy with macros in Lisp, or type-level programming in Haskell, or templates in C++, or self-modifying code in assembly language. In all cases, the principle is the same: In general, you should always prefer the simplest way to get the job done.



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

Search: