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

[REBOL] Re: Linguistic influences

From: rotenca:telvia:it at: 12-May-2002 16:36

Hi all, for me the best mode to do that in Rebol is to use a parse rule: result: copy [] r: [into r | set x skip (insert tail result x)] parse/all serie [some r] It is the more simple and the more fast (i think). But the point is that it also the more easy to understand, if one has a sufficient knowledge of the innatural Rebol parse rules which are distant, i think, from any natural languages rules. So i ask myself what is "naturality".
> 4) I noticed a paradox: the most effective way of assembling blocks is to > use APPEND (or INSERT TAIL), but we do not have it as a native. Moreover, > the APPEND function should be enhanced to allow the same types of > arguments/refinements as INSERT does. (sending as an enhancement request to > feedback too).
I asked for a /tail refinement in insert. It should be also possible to create alias of refined words.
> The CHANGE function should be enhanced too, to allow ANY-TYPE! VALUE > argument.
About Change, I feel the need of a change/part which changes only a fixed length of the destination series with a fixed length of the source series.Now the /part refinement works like insert if the length of the source series is > than the /part argument. Now we must do a copy/part on the source series to do a true fixed lenght Change. If the source is very long, this is a real waste of time and memory. But i could not see a different mode to make it in the current version of Rebol. Anyone see it? --- Ciao Romano