Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: source code layout question

From: joel:neely:fedex at: 4-Jan-2002 20:15

Ooops, I forgot another bit of trivia from my past! Carl Read wrote:
> I try not to have more than one evaluation on a line though, > unless they're within a block. So this I'd try to avoid - > (usually:)... > > while [x < y][y: y - x append z "x"] >
Ordinarily I do as well, but sometimes I cheat... I remember from my FORTH days (FORTH also eschews any pretense at syntax) the convention of using horizontal whitespace to break a run of words into "phrases", which might deal with the above something like while [x < y] [y: y - x append z "x"] Just another option, but not one so easily automated! -jn- -- ; sub REBOL {}; sub head ($) {@_[0]} REBOL [] # despam: func [e] [replace replace/all e ":" "." "#" "@"] ; sub despam {my ($e) = @_; $e =~ tr/:#/.@/; return "\n$e"} print head reverse despam "moc:xedef#yleen:leoj" ;