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

Scala 2.10 will have it too.

There is a distinction to be made. In non-homoiconic languages writing macros takes a lot of effort, while in Lisp it's very natural.

On the other hand I don't feel that's an advantage for Lisp, because macros are not composable as functions are and you have to really grok Lisp in order to write macros effectively and also recognize instances where they are appropriate.



I don't think writing Template Haskell macros takes a lot of effort. It is probably harder than Lisp macros, but the main effort is studying the TH API once.




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

Search: