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

[REBOL] Re: ignore

From: petr:krenzelok:trz:cz at: 26-Jun-2001 23:47

----- Original Message ----- From: <[ryan--christiansen--intellisol--com]> To: <[rebol-list--rebol--com]> Sent: Tuesday, June 26, 2001 10:16 PM Subject: [REBOL] ignore
> 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 you don't want to have your own mezzanine, you could probably use: none or does [none] it is readable enough ... on the other hand having another standard mezzanies would not hurt, e.g.: ->> time-of: func [time][fourth time] ->> time-of now == 23:36:57 ->> words-of: func [object][next first object] ->> probe words-of system ->> values-of: func [object][next second object] ->> probe values-of system ; better don't do this one :-) if not exists? - it is not correct english, you could easily define: ->> doesn't: :not ->> exist?: :exists? ->> if doesn't exist? %/C/ble.txt [print "ble.txt doesn't exist :-)"] ble.txt doesn't exist :-) Sometimes as the most confusing concept of Rebol seems to be polymorphism. Typical example is 'first - it can be used in many situation, with different results (first on series, first on object, first on function, first on port, first on routine, structure ....) -pekr-