<p dir="auto">Provide this convenient shorthand:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="function foo(x)::T
  ...
  return z
end"><pre class="notranslate"><code class="notranslate">function foo(x)::T
  ...
  return z
end
</code></pre></div>
<p dir="auto">for this:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="function foo(x)
  ret::T
  ...
  ret = z
  return ret
end"><pre class="notranslate"><code class="notranslate">function foo(x)
  ret::T
  ...
  ret = z
  return ret
end
</code></pre></div>
<p dir="auto">To be settled before this is done is whether we should simplify the BitArray type so that it does not take a type parameter. <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/carlobaldassi/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/carlobaldassi">@carlobaldassi</a> believes (or at least believed some months ago that it should), while <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/JeffBezanson/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/JeffBezanson">@JeffBezanson</a> and <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/StefanKarpinski/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/StefanKarpinski">@StefanKarpinski</a> wanted to do away with the type parameter. Let's conclude that discussion here and get BitArrays more integrated.</p>