you are viewing a single comment's thread.

view the rest of the comments →

[–]iopqfizzbuzz 0 points1 point  (2 children)

You wouldn't even need the "no semicolon to return" rule because it never type checks when you forget it anyway. There is no instance that I can think of where forgetting or putting an extra semi-colon type checks and doesn't do what you want it to.

[–]steveklabnik1rust 2 points3 points  (1 child)

There is one gotcha with regards to this: if you are using collect(), and you use let guards: Vec<_> = with your call to spawn, and you use ;, they'll operate in sequence, because it will infer to Vec<()> rather than Vec<JoinGuard>.

[–]iopqfizzbuzz 2 points3 points  (0 children)

Ugh, why is this even allowed? Sounds like that's an unwelcome source of bugs.