Missatge de Rony G. Flatscher <rony.flatsc...@wu.ac.at> del dia dv., 16 de maig 2025 a les 11:49: (cut)
> 2) Adding new functionality to ooRexx, but being wary to "keep the > language small and easy to > learn". > (cut) Maybe it would also be interesting to revisit your rgf_util2.rex package, and associated publications like https://wi.wu.ac.at/rgf/rexx/orx20/2009_orx20_RGF_UTIL2-20100806-article.pdf . In particular, - Having negative indexes for many of Rexx BIFs looks like a neat idea (many languages use that notation; it's easy to explain and to learn; it's not esoteric; and you are not forced to use it). - Maybe some of the ideas formulated in section *5 Parsing a String Into Words* (see your pdf above) could be applied to add new parameters to some of the existing BIFs. For example, currently there is a third "chars" argument to STRIP, which determines which are the characters to be stripped (by default, that's "2009"X, that is, what ooRexx considers to be whitespace). Adding a "chars" argument to WORDS would allow doing things like removing punctuation (for example); such an additional, optional, parameter could also be used in SUBWORD, WORD, WORDINDEX, WORDLENGTH and WORDPOS. Josep Maria
_______________________________________________ Oorexx-devel mailing list Oorexx-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/oorexx-devel