[Pitch] Last expression as return value

You are right. This means that:

  1. either @discardableResult should not make a difference (as it doesn't in the original proposal), or
  2. linters won't support a rule similar to redundantReturn in case of multi statement bodies.

Not ideal but hopefully not a show stopper.


Edit:

  1. Make compiler itself deal with those warnings (off / omit returns / require returns) as pitched here – compiler has all the information needed including types and @discardableResult attribute.