top | item 44428004 (no title) s3graham | 8 months ago As you surely know if you're quoting the standard, it depends on which standard! discuss order hn newest tedunangst|8 months ago Quote a different standard. gpderetta|8 months ago I believe that since C23 foo() is now a nullary function. As this is the last approved standard and it supersedes all previous standards, it is technically correct to say that de-jure this is what the (unqualified) C standard mandates.Of course de-facto things are more nunanced. el_pollo_diablo|8 months ago C23 does not change anything in this situation, because we are talking about the definition of main(), not a forward declaration. More details here:https://news.ycombinator.com/item?id=38729278#38732366 load replies (1)
gpderetta|8 months ago I believe that since C23 foo() is now a nullary function. As this is the last approved standard and it supersedes all previous standards, it is technically correct to say that de-jure this is what the (unqualified) C standard mandates.Of course de-facto things are more nunanced. el_pollo_diablo|8 months ago C23 does not change anything in this situation, because we are talking about the definition of main(), not a forward declaration. More details here:https://news.ycombinator.com/item?id=38729278#38732366 load replies (1)
el_pollo_diablo|8 months ago C23 does not change anything in this situation, because we are talking about the definition of main(), not a forward declaration. More details here:https://news.ycombinator.com/item?id=38729278#38732366 load replies (1)
tedunangst|8 months ago
gpderetta|8 months ago
Of course de-facto things are more nunanced.
el_pollo_diablo|8 months ago
https://news.ycombinator.com/item?id=38729278#38732366