5 ms·
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 natur
by bad_user 14y ago
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.
- Peaker 14y agoI 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.