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

[REBOL] ignore

From: ryan::christiansen::intellisol::com at: 26-Jun-2001 15:16

Would it be useful to have a REBOL native word 'ignore? ignore: func [][] Why? Because it can be used in if error? try statements, like as follows... if error? try [publisher-email-address: get-email-address page][ ignore ] If the 'try block returns an error, I place 'ignore in the return block. Sure, you could use comments. if error? try [publisher-email-address: get-email-address page][ ; ignore ] But if for some reason you copy-and-past some code and the words wrap incorrectly, you can inadvertantly comment out code you didn't mean to. You could also simply have nothing at all in the return block. if error? try [publisher-email-address: get-email-address page][] But that doesn't "tell" you anything. Also, the brackets tend to sit rather close in some fonts and can be overlooked. Thoughts? -Ryan