Replies: 4 comments 8 replies
-
What is the rationale behind not using stdbool.h? |
Beta Was this translation helpful? Give feedback.
-
邮件已收到,我会尽快回复的!
|
Beta Was this translation helpful? Give feedback.
-
邮件已收到,我会尽快回复的!
|
Beta Was this translation helpful? Give feedback.
-
Honoring the request at the start of this thread: Greetings. I'm a long time Software Engineer (CS degree in 1981, been a C programmer since around 1982), former compiler developer, and a bit of a computer language nerd. I was looking for existing C coding standards that I can point someone at without them having to go through the opsec for the program I work on to access our repositories, and I came across this one (amongst others). Though there are several things I disagree with in the rules put forward in @MaJerle's text, overall it's reasonable. When I'm writing (or part of the team writing) a coding standard, I break it into 2 parts:
So there are some style things I do differently (where the open brace of a block is placed; I prefer a more "BSD" style), and none of the standards I work with (including the ones I didn't have a hand in) allow multiple variables to be defined in the same declaration (with some exceptions). Nothing that has a static initializer may share a definition with any other variable. I've not read the entire set of rules, but these are the two that stood out to me at first. This is not a criticism, it's just joining the conversation as a professional software engineer. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
👋 Welcome!
We’re using Discussions as a place to connect with other members of our community. We hope that you:
build together 💪.
To get started, comment below with an introduction of yourself and tell us about what you do with this community.
Beta Was this translation helpful? Give feedback.
All reactions