Skip to content

StrPrelude::char_at() confuses people by accept byte index instead of char index #19724

Closed
@liigo

Description

@liigo

If we do not want to change its semantic, I would like propose to rename it to char_at_byte_position, or just remove the method. It is not very useful to get a char from byte index. Similar to char_at_reverse.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions