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

[REBOL] Re: choice of representation - was paths & lookups & change

From: brett:codeconscious at: 25-Oct-2003 11:26

Hi Max,
> why use switch rather than select? > > I can use code when I need it, directly in my values. > > default-value: "n/a" > > data: [name [default-value] age [30] race ["beagle"]] > name: switch 'name data > == "n/a" > > also, the fact that values are within blocks makes the use of words as
data possible. Thats interesting, I don't think I would have considered switch for data access like that. Another tool for the tool-belt. :-) Regards, Brett.