DeVault: Announcing the Hare programming language
DeVault: Announcing the Hare programming language
Posted May 5, 2022 10:30 UTC (Thu) by khim (subscriber, #9252)In reply to: DeVault: Announcing the Hare programming language by tialaramex
Parent article: DeVault: Announcing the Hare programming language
> Even though "the old way" doesn't have any coherent meaning which is why this came up as a Defect Report not as a future feature proposal.
It was abuse of the system, plain and simple.
One part of the standard say saying, back then, that only visible values matter and if two pointers are identical they should behave identically.
That's understanding of the vast majority of the practical programmers and this is what should have been kept as a default (even if it affected optimizations).
The other part of the standard was talking about pointer validity and contradicted the first, e.g. realloc in C99 (but, notably, not in C89) is permitted to return different pointer which can be bitwise identical to the original one.
That's what saboteurs wanted to hear and that's what they used to sabotage C/C++ community.
> Provenance is difficult, I would agree with you that C++ didn't do a great job here by trying to kick this ball into the long grass rather than wrestle with the difficult problemIt's not a “difficult problem” at all. If sabotage would have failed then rules for when identical pointers are not considered to be identical would have become not “hidden”, “unwritten” part of the standard, but a non-standard mode, extension.
If it would have been proven that they are helping to produce much better code then they would have been enabled explicitly in many projects. And people would have became aware.
Instead language was silently and without evidence changed behind the developer's back. That's real serious issue IMNSHO. Layman are not supposed to know all the fine points of law. S/he especially is not supposed to know all the unwritten rules.
