Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
few
19 days ago
|
parent
|
context
|
favorite
| on:
C++ Modules Are Here to Stay
And their code example doesn't actually return a value!
Davidbrcz
19 days ago
[–]
For main it's explicitly allowed by the standard, and no return is equal to return 0
direwolf20
19 days ago
|
parent
[–]
which is super weird. If they can tell the compiler to allow no return, only for main, they can also tell it to pretend void return is int return of 0, only for main.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: