News for hackers. Stuff that matters.
Re:Notes on a Smaller Rust by steveklabnik on Thursday July 18, 2019 @10:48AM (#20470383)
It is a semantic distinction, because "everything is an expression" and "implicit returns" have different semantics.

Thinking of them as implicit returns leads people to believe they can write code like

  fn foo(x: bool) -> i32 {
      if x {
          5
      }

      // more code
and then they're confused when this doesn't work.

There are no comments on this comment yet.