in reply to Re^9: Pre-compiled Perl?
in thread Pre-compiled Perl?
Ah, there you go, I didn't know about reader macros in Lisp. And C++ template expansions are Turing-complete (I believe), so that's another exception. C preprocessor macros let you do some of that stuff, but they're very restricted (you can't nest an #if inside a #define, for example).
The reason I bring up prototypes is that Perl code can decide whether or not to install them, like this:
use warnings; BEGIN { *foo = rand() < .5 ? sub { print "@_\n" } : sub ($) { print "@_\n" } } foo 27, 42; # Parsed as "foo(27,42);" or "foo(27),42;"
In any case, I was just making an observation, not arguing about which language is "better" or "more efficient" or "more flexible."
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^11: Pre-compiled Perl?
by LanX (Saint) on Apr 06, 2017 at 21:04 UTC |