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

[REBOL] Re: REBOL Enhancement Proposals (REPs)

From: joel:neely:fedex at: 25-Sep-2001 19:04

Hi, again, Geza, Further clarification... Joel Neely wrote:
> Geza Lakner MD wrote: > > > > #2 "Polymorph" multiple 'SET > > > > SET now expects a word to set. Words in objects seem to be > > buried deep, being not really suitable for an elegant multiple > > set operation: > > > > e.g. > > a: context [ b: context [c: none]] > > d: context [ e: none] > > > > The logical and straightforward way unfortunately does not work: > > > > set [a/b/c d/e] [1 2] > > > > Just for clarification... > > Could you explain why you would prefer the above SET expression > to the following? > > a/b/c: 1 d/e: 2 >
I'm not necessarily disagreeing, but interested in your rationale. I tend to use objects in a more "encapsulated" fashion, in which the methods of the function are responsible for modifying the attributes of the object, in constrast to a "c-struct" fashion, in which other code is free to go in and manipulate the content of the object. Just a question of style, but I'm interested in your views. -jn- -- There is no reason anyone would want a computer in their home. -- Ken Olson, DEC, 1977 joel>FIX>PUNCTUATION>dot>neely>at>fedex>dot>com