3 ms·
It depends on what kind. I didn’t find maintaining codebases littered with platform-specific ifdefs all that fun. If statements used for error checking are a b
by skybrian 5y ago
It depends on what kind. I didn’t find maintaining codebases littered with platform-specific ifdefs all that fun.
If statements used for error checking are a bit verbose but basically fine.
- mseepgood 5y agoGo doesn't have platform-specific ifdefs sprinkled throughout the source. Platform-specific code is separated into files guarded by build tags as recommended in 'The Practice of Programming'. Compile-time control flow is not mixed with runtime control-flow.
- skybrian 5y agoSure, that was in C. Go is an improvement.