Skip to content

What to do with maybe-invalid indexes for primSubstringFrom #73

@ltratt

Description

@ltratt

String substringFrom carefully checks bounds and throws an error if they're invalid. However, other functions in String.som call primSubstringFrom directly and sometimes seem to pass start==0, end==0, and end<start. What should primSubstringFrom do in such cases? Throw an error? Return the empty string? Or ... ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    specNeeds specification, or is specification related.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions