News for hackers. Stuff that matters.
Re:C++17 creates a practical use of the backward array index... by bfrog on Monday April 03, 2023 @08:50PM (#35433538)
Ah yes, another rule to try and remember while writing a reviewing c++
Re:C++17 creates a practical use of the backward array index... by addaon on Monday April 03, 2023 @09:44PM (#35433905)
This was previously an undefined order. It is now defined. Any code that you would have reviewed previously requires no additional knowledge to review now. Any code that is depending on this new C++17 defined behavior is either pushing the cleverness ceiling, or is going to document the dependency.
Re:C++17 creates a practical use of the backward array index... by pjmlp on Tuesday April 04, 2023 @02:47AM (#35435974)
Anyone not using something like Sonar in their pipelines is really doing themselves a disservice, even with languages considered less bloated like Python, Java, C#, I cannot keep up with all the rules after circa 25 years of ecosystem evolution (less for C#).