node
node copied to clipboard
lib: refactor to use optional chaining
This PR migrates expressions such as a ? a.b : c
to a?.b ?? c
Codemod script: https://github.com/pd4d10/nodejs-codemod/blob/main/src/optional-chaining.ts
Also see: https://github.com/nodejs/node/issues/38609
I'm not sure we want to do that after https://github.com/nodejs/node/pull/38245... In any case this should be split into several PRs, it's less of a burden to review smaller PRs and we benchmark it more efficiently.
I'm not sure we want to do that after #38245...
OK. Given this information, I guess we should hold it until the performance issues solved.
This issue/PR was marked as stalled, it will be automatically closed in 30 days. If it should remain open, please leave a comment explaining why it should remain open.
Closing this because it has stalled. Feel free to reopen if this issue/PR is still relevant, or to ping the collaborator who labelled it stalled if you have any questions.