Skip to content

Remove ParserState::$length #953

Closed
Closed
@JakeQZ

Description

@JakeQZ

This property merely represents \count(ParserState::$characters).

Unlike C, PHP stores arrays internally with the length included, in such a way that obtaining it is atomic (O(1)). We don't need to duplicate a feature already provided by the language.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions