If I succeed in nothing else, I want to eradicate the C “recreate all the integer types in every library you create” anti-pattern.
-
-
Do you know the nominal motivation behind the antipattern tho? From my experience it's an ideological one.
-
I was under the impression it was originally for some sort of C/Pascal interop in Win32. Could be wrong though.
-
At least for some APIs, it's an ideology of the API being "language agnostic" and of C being non-universal as a foundation.
-
partial reason IME: one doesn't necessarily have fixed-size types, and "stdint.h" isn't quite always available yet.
-
If you have a broken compiler that lacks it, just drop one in with the right definitions hard-coded.
-
that is one possible option. on my laptop, still have "Platform SDK 6.0A" & Visual Studio 2008, which lack it.
-
It's by far the path of least mess, and follows the prime directive of porting...
-
Always put workarounds for broken systems as close as possible to the broken system, far as possible from general code.
- 1 more reply
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.