Added RFE # 856 <https://sourceforge.net/p/oorexx/feature-requests/856/>.

---rony

On 22.05.2025 08:36, Till Winkler via Oorexx-devel wrote:

The option to use negative indexes is a really good idea that further increases the flexibility of ooRexx. You probably already have this in mind, but to be on the safe side, I think that for the sake of consistency, any BIF/method with “index” or “pos” should have this option (if appropriate).

On 5/19/25 10:54, Rony G. Flatscher wrote:
On 18.05.2025 20:00, Josep Maria Blasco wrote:


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).

Yes, that would be a nice addition to the ooRexx BIFs if no one objects, removing the need for rgf_util2.rex in these cases.

  * 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.

Hmm, could points. Hoping at some form of Unicode support in ooRexx which would help to have this functionality included in ooRexx and in some of the ooRexx BIFs.

---rony
_______________________________________________
Oorexx-devel mailing list
Oorexx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-devel

Reply via email to