3 ms·
Maybe Perl 6 will have meta-language power enough to equal the macro system? Not only does it have full-on raging macros, you can redefine the languages own sy
by SwellJoe 18y ago
Maybe Perl 6 will have meta-language power enough to equal the macro system?
Not only does it have full-on raging macros, you can redefine the languages own syntax inline. Check out one of Larry's recent talks about STD.pm (here's a Google Tech Talk from last year, which is nowhere near as funny as Larry usually is, but is still quite informative: http://www.youtube.com/watch?v=JzIWdJVP-wo http://www.youtube.com/watch?v=JzIWdJVP-wo )for a real "when you see it, you'll shit bricks" moment. Perl 6 is far more intimidating than I ever realized. They seem to have looked at everything good about Perl (and a handful of other languages) and said, "Let's do a lot more of that." It's somewhat scary how much more of "that" they've done. So, there's macros from Lisp, lazy evaluation from Haskell, redefine-able grammar and syntax from I dunno where, a new regex language, etc. It takes TMTOWTDI to obscene new heights (kinda like Lisp). If power is the sole determining factor in what language you choose, there's a strong case to be made that Perl 6 is the one you want. I don't know that I entirely buy that (if I did, I guess I'd be using Lisp), but I'm hopeful that the real result of Perl 6 will be a language as capable as Lisp with a community and library culture as strong as Perl 5.
- berntb 18y agoWhat I meant was, will it be as easy to use as lisp macros? To take most everything good existing and sum it, is how you make Perls. :-) I'm not arguing here, I do Perl today. You should have put the content of the last sentence first; too few will read it.