Uh oh!
There was an error while loading. Please reload this page.
src: use enum class instead of enum in node_i18n - #45646
Conversation
2ea515e to
eb666b2CompareThere was a problem hiding this comment.
I suggest removing the IDNA_ prefix from the members of idna_mode since the scope is changing. For example, idna_mode::IDNA_STRICT should just be idna_mode::STRICT.
There was a problem hiding this comment.
I think good suggestion from a clean code point of view. Removed IDNA_ prefix.
"enum class" has more advantages than "enum" because it's strongly typed and scoped. Refs: https://isocpp.org/wiki/faq/cpp11-language-types#enum-class
eb666b2 to
bc0541fComparedeokjinkim
commented
Nov 28, 2022
@tniessen BTW, I have one question about test. For now, |
bc0541f to
5d4cb6fComparetargos
commented
Nov 28, 2022
Windows errors: https://github.com/nodejs/node/actions/runs/3561646551/jobs/5983757408#step:6:2624 |
This change is needed to fix error of window build.
Uh oh!
There was an error while loading. Please reload this page.
deokjinkim
commented
Nov 28, 2022
Thanks to your sharing, I could find solution to avoid error of window build. |
This comment was marked as outdated.
This comment was marked as outdated.
nodejs-github-bot
commented
Nov 29, 2022
nodejs-github-bot
commented
Nov 30, 2022
Landed in 1750a94 |
"enum class" has more advantages than "enum" because it's strongly typed and scoped. Refs: https://isocpp.org/wiki/faq/cpp11-language-types#enum-class PR-URL: #45646 Reviewed-By: Darshan Sen <raisinten@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Minwoo Jung <nodecorelab@gmail.com>
"enum class" has more advantages than "enum" because it's strongly typed and scoped. Refs: https://isocpp.org/wiki/faq/cpp11-language-types#enum-class PR-URL: #45646 Reviewed-By: Darshan Sen <raisinten@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Minwoo Jung <nodecorelab@gmail.com>
"enum class" has more advantages than "enum" because it's strongly typed and scoped. Refs: https://isocpp.org/wiki/faq/cpp11-language-types#enum-class PR-URL: #45646 Reviewed-By: Darshan Sen <raisinten@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Minwoo Jung <nodecorelab@gmail.com>
"enum class" has more advantages than "enum" because it's strongly typed and scoped. Refs: https://isocpp.org/wiki/faq/cpp11-language-types#enum-class PR-URL: #45646 Reviewed-By: Darshan Sen <raisinten@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Minwoo Jung <nodecorelab@gmail.com>
"enum class" has more advantages than "enum" because it's strongly typed and scoped.
Refs: https://isocpp.org/wiki/faq/cpp11-language-types#enum-class