News for hackers. Stuff that matters.
Re:Show HN: A pure C89 implementation of Go channels, with b... by jansommer on Wednesday December 13, 2023 @05:52PM (#38635339)
MSVC lacks some C99 features like variable length arrays and complex numbers. There's always a work around, but wouldn't want to use that compiler for C unless I had to.

Going for C89 for a truly portable project is probably fine.

Re:Show HN: A pure C89 implementation of Go channels, with b... by arp242 on Wednesday December 13, 2023 @09:55PM (#38637242)
MSVC added that a few years ago. It took them a (very) long time, but it should now be fully C99-compliant, even C17 I think (either fully or mostly).
Re:Show HN: A pure C89 implementation of Go channels, with b... by jansommer on Thursday December 14, 2023 @04:18AM (#38639422)
No. That syntax is not supported. Try a VLA and see how it goes. Then try a complex number or read the docs: "The compiler doesn't directly support a complex or _Complex keyword" - https://learn.microsoft.com/en-us/cpp/c-runtime-library/comp...
Re:Show HN: A pure C89 implementation of Go channels, with b... by pjmlp on Thursday December 14, 2023 @07:33AM (#38640664)
Supporting C11 and C17 by definition doesn't require supporting C99 features made optional in C11.