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

[REBOL] Re: idioms to reduce logic clutter ?

From: greggirwin:mindspring at: 12-Oct-2002 10:16

Jason, et al I agree with those who have already replied. Combining the various strategies mentioned will no doubt give you lots of options to play with. Here's a little snippet used in prebol.r from RT. The messages in-line are small, but could be broken out as Joel suggests as well. if not all [ msg: "Missing input file name argument" in-file msg: "Input file not found" exists? in-file msg: "Missing output file name argument" out-file msg: "Input file is not a REBOL file" script? in-file msg: "Cannot load REBOL input file" not error? try [data: load/all in-file] ][ error msg ] --Gregg