If I succeed in nothing else, I want to eradicate the C “recreate all the integer types in every library you create” anti-pattern.
-
-
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.
-
possible. probably depends some on the types of systems one is trying to support though.
End of conversation
New conversation -
-
-
This isn't to detract from your efforts to purge the antipattern, but rather to highlight why it can be hard to extinguish.
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
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.