From: "Hal E. Fulton" Date: 2001-04-23T07:43:28+09:00 Subject: [ruby-talk:14048] Re: Comments in code (was Re: From Guido, with love...) See below... H ----- Original Message ----- From: Bill Kelly To: ruby-talk ML 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" > > > 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