Skip to content

use Nullish Coalescing Operator#854

Open
ximex wants to merge 2 commits into
esphome:mainfrom
ximex:use-nullish-coalescing-operator
Open

use Nullish Coalescing Operator#854
ximex wants to merge 2 commits into
esphome:mainfrom
ximex:use-nullish-coalescing-operator

Conversation

@ximex

@ximex ximex commented Jan 9, 2026

Copy link
Copy Markdown
Contributor

i hope we could already use this new operators (also optional chaining operator)

@balloob

balloob commented Jan 10, 2026

Copy link
Copy Markdown
Member

You can only upgrade to more modern syntax if its the same meaning. Here i dont see any benefit of this pr

@ximex

ximex commented Jan 10, 2026

Copy link
Copy Markdown
Contributor Author

what do you mean with "the same meaning"?
is there any list of which browser versions we want to support? the ?? and ?. syntax is more clear than the ||

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants