C doesn’t even guarantee a == a
Comment on Equality
barsoap@lemm.ee 10 months agoFun fact: C doesn’t even guarantee a + b == a + b
zea_64@lemmy.blahaj.zone 10 months ago
Viking_Hippie@lemmy.world 10 months ago
That’s decidedly unfun and headhurty for those of us less mathemstically inclined. Also so deep into the theoretical weeds that I’m not sure that “fact” applies…
barsoap@lemm.ee 10 months ago
One night I dreamt about the new C standard. It was a tome of ten thousand pages, in dense, tiny, font, three columns of text on each page, and it was headings and sub-headings interspersed with nothing but either “undefined” or “implementation-defined”.
lowleveldata@programming.dev 10 months ago
*If a and b are
float
barsoap@lemm.ee 10 months ago
Or signed integers because overflow is undefined.