Weird Language Features

Warren Postma embed at geocities.com
Fri Mar 2 16:39:06 EST 2001


> It's a separate library that gets to see the source code before it's
> compiled. For an (admittedly extreme) example of what you can do see:
>
> <http://www.csse.monash.edu.au/~damian/papers/HTML/Perligata.html>
>
> Which discusses a filter allowing you to write Perl programs in Latin!

>From the above link, a code sample, illustrating what ought to be a widely
known
programming proverb, that if a language syntax is adequately obtuse, even
comments in Perl may be helpful:

        nexto stringum reperimentum da.     # $next = pos $string;
        nextum stringo reperimento da.      # pos $string = $next;
        inserto stringum tum unum tum duo excerpementum da.
                                    # $insert = substr($string,1,2);
        insertum stringo unum tum duo excerpemento da.
                                    # substr($string,1,2) = $insert;
        keyis hashus nominamentum da        # @keys = keys %hash;
        keya hashibus nominamento da        # keys %hash = @keys;



<GRIN>

De-gustibus-non-disputantem-ly-yrs,

Warren





More information about the Python-list mailing list