3 ms·
Surely the difference there is that Rust doesn't have header files.
by chc 5y ago
Surely the difference there is that Rust doesn't have header files.
- masklinn 5y agoNot necessarily, you could imagine a system where the header file specifies its edition.
- cpeterso 5y agoA header file can check #if __STDC_VERSION__ or __cplusplus versions to make some code conditionally available for, say, C11 or C++11. #if __STDC_VERSION__ >= 201112L // C11 feature #endif #if __cplusplus >= 201103L // C++11 feature #endif
- dralley 5y agoBut don't header files generally get concatenated together due to the way "dumb" textual includes work?