3 ms·
>C has a very weak type system and very weak runtime guarantees, making it much easier to introduce problems with no indication that something's up. Here's an
by cremno 11y ago
>C has a very weak type system and very weak runtime guarantees, making it much easier to introduce problems with no indication that something's up.
Here's an interesting example I've stumbled upon a few weeks ago:
https://stackoverflow.com/questions/31037149/type-safety-for-complex-arithmetic-in-c99/ https://stackoverflow.com/questions/31037149/type-safety-for...
float _Complex -> float doesn't require any diagnostic even though the imaginary component is (silently) discarded. Clang has one (not enabled by default or -Wall/-Wextra) however current GCC versions haven't.
- asveikau 11y agoI'm sure both people using C99 support for complex numbers are really bothered by this.
- stephencanon 11y agoNope, never been a problem. Can't speak for the other guy.
- FreeFull 11y agoNever been a problem for me either.