Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
strager opened this issue Jan 7, 2025 · 0 comments
Open

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

strager opened this issue Jan 7, 2025 · 0 comments
Labels
good first issue Good for newcomers and C++ beginners

Comments

@strager
Copy link
Collaborator

strager commented Jan 7, 2025

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

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

@strager strager added the good first issue Good for newcomers and C++ beginners label Jan 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers and C++ beginners
Projects
None yet
Development

No branches or pull requests

1 participant