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

[REBOL] Re: local vars in functions

From: rishioswal:ya:hoo at: 23-Apr-2002 21:19

I think the reason for making words global by default is simply because it is the natural thing for a newbie to the language or beginner to use. I think this was the right decision.. fits with the rebol philosophy.. The "::" solution, i feel, has the benefit of not getting in the way of beginners but making things more efficient/less errorprone for the intermediate/advanced.. well - at least it seems that way to me at first glance... rishi
>>>
Yeah. I've been wondering why rebol does that.... Could it be better to make any 'word local by default, and make that word global optionally with a key word and maybe another keyword to 'protect it? I'm sure there is a good reason for the current approach, but I don't know what it is. -tim- <<< --- Rishi Oswal <[rishioswal--yahoo--com]> wrote: