Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
unwind
7 months ago
|
parent
|
context
|
favorite
| on:
Driving Compilers (2023)
I agree, but I have to point out that if you're gonna be like that, then you should be explicit about your final
return 0;
tavianator
7 months ago
|
next
[–]
The C standard (since C99) says that `main()` has an implicit `return 0`, you don't need to write it explicitly.
01HNNWZ0MV43FF
7 months ago
|
parent
|
next
[–]
Sure but are we teaching good habits to students, or are we golfing?
pjmlp
7 months ago
|
root
|
parent
|
next
[–]
Given how many tutorials leave best practices out on how to do proper error handling, strings and arrays in C, doing analysis as part of the build, I would say golfing most of the time.
lynx97
7 months ago
|
prev
[–]
Aww, of course, you're right.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: