True, true.
Type: Posts; User: Yarin
True, true.
An interesting idea.
I think I'll go with is_nix and is_posix though, it's more succinct.
Thanks for the feedback.
Well yeah, that's what I wanted to avoid.
"is_nix_os && !is_osx" will work, but what happens when another pseudo-nix OS, like OSX, comes along? I may be rewriting a lot of stuff.
Not a bad...
Eh, maybe in natural language that's acceptable, but not for code:
bool is_nix_os;
bool is_nix_os_not_osx;
Maybe "librt OS"...
EDIT:
Does "distro OS" sound right? Linux and BSDs are traditionally called "distros", but I've never heard of an OSX version called a "distro".
I thought of that, but Solaris isn't free.
Most of us use *nix to refer to Linux, BSD, Solaris, OSX, etc. But let's say you want to exclude OSX/iOS... what you would call that? It's kind of unwieldy to say "*nix excluding OSX".