3 ms·
1. Macros aren't unique to lisp. Perl6 also has macros (http://en.wikipedia.org/wiki/Perl_6#Macros http://en.wikipedia.org/wiki/Perl_6#Macros) though they have
by draegtun 16y ago
1. Macros aren't unique to lisp.
Perl6 also has macros (http://en.wikipedia.org/wiki/Perl_6#Macros http://en.wikipedia.org/wiki/Perl_6#Macros) though they haven't been implemented in Rakudo yet. Also Ioke states that it has macros.
2. Metaprogramming's power ... The best example I know of is Io where pretty much anything other than commas and parentheses...
Touched on Io introspection/metaprogramming before on HN:
* http://news.ycombinator.com/item?id=1804599 http://news.ycombinator.com/item?id=1804599
* http://news.ycombinator.com/item?id=1810480 http://news.ycombinator.com/item?id=1810480
- gnosis 16y agoThe question isn't so much whether other languages have something they call "macros", but whether their macro systems approach Lisp's in power, flexibility, ease of use, integration with the language, and natural fit on to the language representation? Or is the macro system in question more of a Turing tarpit?
- silentbicycle 16y agoProlog's macro system does, but given it's model of computation (search/pattern matching are built in), it ends up being used far less than Lisp's.
- draegtun 16y agoI believe Perl6 will fulfil those requirements because the language is built & hosted upon Perl6 Grammars which makes it totally reconfigurable. ref: * http://en.wikipedia.org/wiki/Perl_6_rules http://en.wikipedia.org/wiki/Perl_6_rules * http://news.ycombinator.com/item?id=1280021 http://news.ycombinator.com/item?id=1280021 * http://perlcabal.org/syn/S06.html#Macros http://perlcabal.org/syn/S06.html#Macros