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

[REBOL] Rebol Tech, please answer. Two questions. Re:(2)

From: rebol:keithdevens at: 11-Sep-2000 21:43

It's funny, I thought of writing functions like that too. The only thing is, as you very appropriately point out, Rebol is very consistent in this. It's not only 'skip that this applies to, but 'pick, 'select, 'find, etc. As far as I know, every function that deals with a series, extending to words like 'insert and 'append, takes the series first, and then the modifier (whether it's an index to return, something to append or insert, a value to select on, a value to find, you get the idea). The language was obviously designed with this as a conscious choice. I'm dying to know what the reasoning was. Personally, and especially in light of Rebol's desire to be similar to a natural language, I think it feels much more natural to put the series last. For examples: English version: append a value to a series: Rebol version: append 'value 'series English version: insert a value into a series: Rebol version: insert 'value 'series English version: find a value in a series Rebol version: find 'value 'series and on and on. Could it be possible that this way is more natural to me only because I'm a native English speaker? Keith