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

[REBOL] Re: check me? deleting files based on a pattern

From: greggirwin:mindspring at: 28-Oct-2003 11:05

Hi Tom, TF> How can I elimintate most of the "rejoins" that I use? TF> I rejoin everything. If all you have is a hammer... JOIN and REJOIN will return the same datatype as the first item you give them, so you can avoid doing a lot of TO-* stuff if you don't use strings for everything (and look at the source for them so you can see what they do under the hood). INSERT, CHANGE, and APPEND are often all you need, but one of the most important things is to look at how things read (i.e. is the intent clear) based on the words you're using. COMPOSE is another handy tool, as is standard block notation; sometimes you don't really need things joined if the code processing them can operate on a block. i.e. don't REJOIN things in one place only to split them back apart somewhere else if you can avoid it. Path notation is also handy, but it looks like you know about that. -- Gregg