See below...

H

----- Original Message -----
From: Bill Kelly <billk / cts.com>
To: ruby-talk ML <ruby-talk / ruby-lang.org>
Sent: Sunday, April 22, 2001 2:24 PM
Subject: [ruby-talk:14034] Re: Comments in code (was Re: From Guido, with
love...)


>
> From: "Dennis Decker Jensen" <dennisdecker / mail.tele.dk>
>
> > Regarding implementation language: I think I would need a lot more
> > "helpful comments" if I were to code in Forth or Assembler... :-)
>
>
> ;-)  Okay, here's my attempt at hopefully a maximally-readable ruby
> implementation.  (But I'm a ruby novice so any improvements would be
> most welcome!)
>

[snip good readable Ruby code]

>
> P.S. I just had a thought as to how to comment the Forth version
> at the level of intent:
>
>                      DUP >R
>                 2* 1+       FOR R@
>             I - ABS            DUP *  R@
>            2* 1+                FOR  R@ I
>        - ABS DUP                 * OVER +
>        R@ 1- DUP                 *  R@ DUP
>          * WITHIN               IF ASCII *
>            ELSE BL            THEN EMIT
>                NEXT CR      DROP NEXT
>                      R> DROP
>

Bill,

You should win some kind of prize for each of these.

Hal