in reply to Re^2: RFC: Export tags for builtin pragma
in thread RFC: Export tags for builtin pragma

Maybe :numeric instead of :round? That provides some future proofing in the event functions like looks_like_number are added at a later date.

Although maybe that causes issues as then different module versions would load different subs.

Replies are listed 'Best First'.
Re^4: RFC: Export tags for builtin pragma
by kcott (Archbishop) on Oct 20, 2023 at 15:38 UTC

    G'day swl,

    ++ Thanks for your suggestion.

    If builtin::round were added, I think that would still be suitable for :round. If builtin::looks_like_number were added, that might go in :numeric; however, perhaps :string would be better (and could include built::trim).

    I feel like I've opened a can of worms and they're all escaping in different directions.
    🥫 🪱 ↖️ 🪱 ↗️ 🪱 ↘️ 🪱 ↙️

    — Ken