Skip to content

warn on mixing ?? with > or == #1233

@strager

Description

@strager
config?.items?.length ?? 0 > 0
// intended: (config?.items?.length ?? 0) > 0
// actual: config?.items?.length ?? (0 > 0)

https://x.com/strager/status/1876508636236964158

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueGood for newcomers and C++ beginners

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions