Wacky Programming Tales

Keith G. Murphy keithmur at mindspring.com
Thu Aug 19 15:04:24 EDT 1999


Ben Caradoc-Davies wrote:
> 
> [strange programming]
> The most confidence uninspiring piece of code I ever had the displeasure to
> maintain contained something like this (allegedly C++, but mainly it's
> intersection with C):
> 
>         i = 0;
>         while( i < max_index ) {
>                 /* some copying or update (not modifying i) goes here */
>                 i = i + 1;
>         }
> 
> This was written by a *very* expensive consultant working for a large
> multinational accountancy firm.
> 
I think I can explain this.  The original code was written to compile
not under C++, but under a little known and short-lived language known
as "C=C+1".  It was to C++ as Python is to Perl.




More information about the Python-list mailing list