Skip to content

Rename json::parser::write to read #1103

@OleksandrKvl

Description

@OleksandrKvl

Naming a::b usually implies "a does b", e.g. std::vector::push_back means "vector pushes back". By definition, parser never writes, it only reads data so this method should be named json::parser::read/consume/etc.

json::serializer::read has the same problem, obj.read(data, size) means object reads data of given size, serializer::read actually writes some data into the given buffer. Don't know if there are other components with this problem.

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