4 ms·
This is an interesting idea, but if you need an extremely terse DSL which doesn't look anything like Python and has to be learned anew, why not just use Perl d
by slurgfest 14y ago
This is an interesting idea, but if you need an extremely terse DSL which doesn't look anything like Python and has to be learned anew,
why not just use Perl directly? Maybe for environments where you can't install Perl?
- gvalkov 14y agoThanks. My approach is actually pretty minimal. Just a read-print-loop (-n, -p), a few local variables (equivalents of $_, $~, $. etc) and a shorthand import syntax to take away some of the verbosity. There are other projects, such as pyp[1], that are more ambitious, but put you through a learning process. By all means, everybody should use what they are comfortable with. Ruby and Perl allow you to write extremely terse and awesome one-liners, the likes of which will never be possible in Python. But if the first solution that pops into your head is a Python one, why not use that? [1] http://code.google.com/p/pyp/ http://code.google.com/p/pyp/