Re:Clever code is probably the worst code you could write
by globular-toast on Wednesday May 22, 2024 @03:34AM
(#40438290)
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.
[ Parent
| on HN ]
There are no comments on this comment yet.