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

[REBOL] REBOL Enhancement Proposals (REPs)

From: geza67::freestart::hu at: 26-Sep-2001 0:00

Hello REBOLers, Why wouldn't we collect - following the path of Python Enhancement Proposals i.e. PEPs - REBOL Enhancement Proposals (REPs) ? Some of us certainly sent ideas to RT's feedback but why couldn't we share and discuss these information before transmitting it to RT's "magic cauldron" ? Let me start the row with my 2 (really two :-) ) cents : REBOL Enhancement Proposals =========================== #1 Immediate (paren) values in paths It would be a very nice and elegant construct if paths may contain immediately evaluated paren expressions yielding path fragments, not only words: e.g. a: [1 2 3] and instead of: b: 2 probe a/:b this: probe a/(1 + 1) or with a twist: probe a/(b) I think that this modification is not simply a syntactic sugar but eliminates setting intermediate working words and using them only once - i.e. in the creation of a dynamic path value. #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] The current method to bind a word in an object to a value is IMHO awkward and distorts code readability thus expressiveness: set reduce [(in a/b 'c) (in d 'e)] [1 2] -- Best regards, Geza Lakner MD mailto:[geza67--freestart--hu]