in reply to Re: Perl is a post-modern aesthetic language
in thread Perl is a post-modern aesthetic language
Hey, sometimes I write LISP that happens to be parsed by perl :)
my @DB_FIELDS = qw/ foo bar baz /; my $sql = 'INSERT INTO table ('; $sql .= join( ', ', @DB_FIELDS ); $sql .= ') VALUES ('; $sql .= join( ', ', map( '?', @DB_FIELDS ) ); $sql .= ')';
OK, so I could have used the x operator instead of map, and it doesn't quite have the extreme paren-nesting that LISP does (in fact, it's possible to get rid of many parens while maintaining correctness). I have some more extreme examples that make you swear you fell into another interpreter, but I can't think of them ATM.
In any case, LISP is remarkable (in its orginal form) for being an incrediably small language without falling down a Turing-tarpit. It's arguably more minimalistic than BF, and you can still write real programs in it without tearing your hair out.
"There is no shame in being self-taught, only in not trying to learn in the first place." -- Atrus, Myst: The Book of D'ni.
|
|---|