Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
globular-toast
on May 22, 2024
|
parent
|
context
|
favorite
| on:
Clever code is probably the worst code you could w...
sum(x) is easiest to read. If your language doesn't provide that as standard just define it yourself. In general you should always be idiomatic, though. If every C++ developer understands the accumulate version then use that.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: