<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="julia&gt; f(x, _, y = nothing) = f(x,y)

WARNING: deprecated syntax &quot;_ as an rvalue around REPL[1]:1&quot;.
f (generic function with 2 methods)"><pre class="notranslate"><code class="notranslate">julia&gt; f(x, _, y = nothing) = f(x,y)

WARNING: deprecated syntax "_ as an rvalue around REPL[1]:1".
f (generic function with 2 methods)
</code></pre></div>
<p dir="auto"><code class="notranslate">_</code> is a lvalue here or?</p>
<p dir="auto">The warnings appear only inside closures.</p>
<div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="julia&gt; for _ in 1:10
           function f(x)
               _ = 10
           end
       end

WARNING: deprecated syntax &quot;_ as an rvalue&quot;.

WARNING: deprecated syntax &quot;_ as an rvalue&quot;."><pre class="notranslate">julia<span class="pl-k">&gt;</span> <span class="pl-k">for</span> _ <span class="pl-k">in</span> <span class="pl-c1">1</span><span class="pl-k">:</span><span class="pl-c1">10</span>
           <span class="pl-k">function</span> <span class="pl-en">f</span>(x)
               _ <span class="pl-k">=</span> <span class="pl-c1">10</span>
           <span class="pl-k">end</span>
       <span class="pl-k">end</span>

WARNING<span class="pl-k">:</span> deprecated syntax <span class="pl-s"><span class="pl-pds">"</span>_ as an rvalue<span class="pl-pds">"</span></span>.

WARNING<span class="pl-k">:</span> deprecated syntax <span class="pl-s"><span class="pl-pds">"</span>_ as an rvalue<span class="pl-pds">"</span></span>.</pre></div>