3 ms·
> It is such an anti-pattern that C and C like C++ codebases are the only ones that go down the #ifdef spaghetti route Like I said the Go way is by far worse.
by knorker 7y ago
> It is such an anti-pattern that C and C like C++ codebases are the only ones that go down the #ifdef spaghetti route
Like I said the Go way is by far worse. Not sure if you're familiar with how this works in Go.
> So not sure about it being an anti-pattern
Well it is. I've given you enough examples.
- pjmlp 7y agoI am quite vocal about Go's language design, yet this is one thing I do agree with the design team. Well, it is an anti-pattern for you, not for those that write best practice large scale architecture design books, and the large majority of language designers out there that have created programming languages that eschew C like pre-processors. So I guess better leave at that, because we aren't going to agree.
- pjmlp 7y agoSomething I forgot to mention, I can also give you CERT, MISRA, JPL and AUTOSAR examples of anti-patterns, including this one being discussed.