News for hackers. Stuff that matters.
Re:C and returning values quickly or safely, but not both by arpafaucon on Friday January 19, 2024 @02:25AM (#39052578)
In that case I would have welcomed a simple sentence stating why they won't use 'const'. I very much feel they're not even aware of it. The general feeling I get is that they're trying to work without a compiler, notably without any optimization not warning - some of the code (passing short* instead of int*) will raise warnings -it's likely optimisations passes will often remove some of the copy overhead - the compiler will bark if you write to 'const'

So my general feeling is that they're trying to work assuming people will want to screw their API intentionally; which looks quite unreasonable to me. A bit context about the 'why' would be interesting

There are no comments on this comment yet.