News for hackers. Stuff that matters.
Re:Resource efficient Thread Pools with Zig by c-cube on Tuesday September 14, 2021 @08:06AM (#28523434)
It's not just the function's body, it's any block. Blocks in rust are expressions and return their last statement's value. It's nothing like Javascript's ASI where it's just inserting ; implicitly and only `return` can return a value.

There are no comments on this comment yet.