Tuesday, May 29, 2007

How To Make Everything Look Like Python: Part 2



In part one, Perl and Ruby code allowed you to code Perl and Ruby, respectively, while pretending to code Python; now in part two, the Ruby version gets an extraordinary upgrade. Your new Python disguise would fool Python's own mother! Not only does it turn out to be possible to do source filtering in Ruby without any fancy tricks, it turns out to be easy as well, thanks to a trick a Lisper discovered when working to program Ruby as if it were Lisp.

(All of this is of course totally unnecessary, but fun anyway.)

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.