Skip to content

Comment on Why don't you use dependent types?parent

Comments

I thought that this was a GCC extension(you need to use #define n 10 instead of int n = 10). Is this not the case anymore?

This is in ISO C99. In C11 it was made an optional feature but in C23 we made the type part mandatory again.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.