4 ms·
But we're not talking about memory corruption bugs. We're talking about intentional features.
by lrem 5y ago
But we're not talking about memory corruption bugs. We're talking about intentional features.
- hu3 5y agoThat was covered with eval() which is an intentional feature. > Perl/Python/Ruby/PHP and friends all have eval()...
- qalmakka 5y agoThere's a difference between providing a way to call the interpreter and giving people a convenient way to download code and execute it. No matter how you spin it, it's basically the same as standardizing `curl | sh`. PS: eval() is also very bad per se, and IMHO it's a dangerous feature when used outside of a REPL or a debug environment. The fact that others already have bad features or are doing dubious things doesn't give you a free pass for doing them yourself. It never does, it's like saying that committing a crime is OK as long as everyone else does the same.
- baq 5y agothere is no eval_from_url(), though.
- m12k 5y agoOh that's neat - let's make a format string shorthand for eval_from_url() so it's easier to interface with, e.g. from a logging framework.