FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

src: move const variable in `node_file.h` to `node_file.cc` by pluris · Pull Request #49673 · nodejs/node · GitHub

/ node Public

src: move const variable in node_file.h to node_file.cc - #49673

Closed
pluris wants to merge 1 commit into
nodejs:mainfrom
pluris:fix/const_variable
Closed

src: move const variable in node_file.h to node_file.cc#49673
pluris wants to merge 1 commit into
nodejs:mainfrom
pluris:fix/const_variable

Conversation

pluris commented Sep 16, 2023

Copy link
Copy Markdown
Contributor

After checking the comments in the reference, In my opinion, there is no need to define const variables in the header.

It seems efficient to process it by defining it as constexpr in the source file so that it can be evaluated at compile time. To this end, I suggest changing it to char[] rather than processing it as std::array.

Refs: #48325

nodejs-github-bot added c++ Issues and PRs that require attention from people who are familiar with C++. fs Issues and PRs related to the fs subsystem / file system. needs-ci PRs that need a full CI run. labels Sep 16, 2023
pluris closed this Sep 16, 2023
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

c++ Issues and PRs that require attention from people who are familiar with C++. fs Issues and PRs related to the fs subsystem / file system. needs-ci PRs that need a full CI run.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants


Back | FazBrowse Home | New Git URL