Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I'm not super-great with Zig, but my understanding is that `count` should be the return value, post-increment.

When the return value is unspecified, Zig will default to an implicit return of the last-calculated rvalue. The same behavior is also found in Ruby, Lisp, and some other languages as well.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: