+
Skip to content

Style change: better syntax for left/right #18

@mappum

Description

@mappum

Throughout the codebase, we use left: bool to parameterize between left and right. This is not very intuitive to read (e.g. tree.attach(true, child)).

Could fix by adding an enum Side { Left, Right }, and/or adding variants of the methods with _left and _right suffixes.

This is only a style change and probably doesn't affect the compiler's output at all.

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

      点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载