"Using a library version-test macro can help with backwards compatible code."

Good thing we added __STDC_VERSION_STDLIB_H__ in the standard recently, so we can test #if __STDC_VERSION_STDLIB_H__ > 202311L.

Still "min" and "max" are SUPER common variable names AND function names. This is gonna load up a shotgun and blow up a TON of code....!

Put it in stdminmax.h or something, maybe even stdstat.h and load up a helluva bunch of statistics functions to go with it.

@thephd seems like at the very least they should be named something like “imin” or “dmin” to avoid conflict smh

Sign in to participate in the conversation
Computer Fairies

Computer Fairies is a Mastodon instance that aims to be as queer, friendly and furry as possible. We welcome all kinds of computer fairies!