On 23 January 2026 17:05:09 GMT, Alexandre Daubois <[email protected]> wrote:
>3. Developers who truly need to extract integers from strings like >"123abc" can use explicit parsing. This makes the intent explicit: >"I'm extracting a number from potentially dirty input", rather than >relying on cast semantics that differ from type validation. The existing functions *are* explicit. They have *always* had the semantics of "try to extract an integer from this value". They are not "problematic", they are a perfectly reasonable feature for the language to include. The *new* functionality needed is "validate that this value is int-like, and only give me an integer if it is". I don't think we should repurpose widely-used syntax for a different use case. If we want new functionality, with new semantics, we should add new syntax for that. Rowan Tommins [IMSoP]
