<turbo-stream action="append" target="posts_list"><template>    <div class="postbit" id="343217" data-post-id="343217">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="sodapopcan" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/sodapopcan/120/34668_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  sodapopcan
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<aside class="quote no-group" data-username="yukster" data-post="11" data-topic="66810">
<div class="title">
<div class="quote-controls"></div>
<img alt="" width="24" height="24" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/yukster/48/13609_2.png" class="avatar"> yukster:</div>
<blockquote>
<p>Credo is the compendium of idiomatic Elixir</p>
</blockquote>
</aside>
<p>Citation needed!</p>
<p>Credo is for enforcing per-project standards, not general community standards, and can be customized (which is what I do).</p>
<p>Also, check the root module module of Phoenix:</p>
<p><a href="https://github.com/phoenixframework/phoenix/blob/7d5b954/lib/phoenix.ex#L12-L13" class="onebox" target="_blank" rel="noopener nofollow ugc">https://github.com/phoenixframework/phoenix/blob/7d5b954/lib/phoenix.ex#L12-L13</a></p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="343217" data-batch-url="/posts/batch_likers">
                        6
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/what-do-you-think-about-using-vs-other/66810/12">Post #11</a>
	                </div>
	            </div>
              <div id="likers-container-343217" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="343217"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #11"></div>
  </section>
</div>
    <div class="postbit" id="343260" data-post-id="343260">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="amclain" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/amclain/120/37691_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  amclain
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>We practice documentation as code, so we encourage commenting ignored pattern matches like <code>_error</code> to better explain the variables:</p>
<pre data-code-wrap="ex"><code class="lang-ex">case result do
  {:ok, data} -&gt; do_action(data)
  _error -&gt; fail()
end
</code></pre>
<p>If you’re literally talking about writing <code>_other</code>, that’s something we would avoid and would try to come up with a better name since “other” is what <code>_ -&gt;</code> means. The goal is to document the program, not the programming language.</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="343260" data-batch-url="/posts/batch_likers">
                        2
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/what-do-you-think-about-using-vs-other/66810/13">Post #12</a>
	                </div>
	            </div>
              <div id="likers-container-343260" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="343260"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #12"></div>
  </section>
</div>
    <div class="postbit" id="343270" data-post-id="343270">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="sodapopcan" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/sodapopcan/120/34668_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  sodapopcan
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>In the spirit of documentation as code, I write:</p>
<pre data-code-wrap="elixir"><code class="lang-elixir">case result do
  {:ok, data} -&gt; do_action(data)
  {:error, _} -&gt; fail()
end
</code></pre>
<p>This leaves little up to the imagination of an unsuspecting reader: they can see the exact shape and don’t have to look anything up.  It also means we get a more meaningful exception if somehow we get <code>nil</code> or something else completely unexpected (the entire <code>case</code> fails the match as opposed to the catch-all failing the match).  Even with safety nets we have, Elixir is still a dynamic language so anything is possible!</p>
<p>For me, a bare <code>_</code> perfectly conveys “I literally don’t care what I get here, even if it falls outside of the subset of things I’m assuming it’s going to be.”  Otherwise, if you’ve been writing Elixir for more than a minute and you don’t know that the opposing match of an <code>:ok</code> tuple isn’t some form of <code>:error</code> then that’s a whole other problem and naming your matches as such isn’t going to fix that.</p>
<p>I say that if you know the shape of the error, match on the shape!  There is confidence in a bare <code>_</code> that proclaims: “I will literally accept any outcome!” whereas <code>_error</code> sorta says “Well, you know, I’m <em>assuming</em> this is going to be an error tuple… like, probably.”</p>
<p>Please note, I’m fully aware I’m being way too overly passionate about a low-stakes stylistic point <img src="https://forum.elixirforum.com/images/emoji/apple/upside_down_face.png?v=15" title=":upside_down_face:" class="emoji" alt=":upside_down_face:" loading="lazy" width="20" height="20">  I’ll do whatever a codebase’s style guide dictates I must do.</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="343270" data-batch-url="/posts/batch_likers">
                        1
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/what-do-you-think-about-using-vs-other/66810/14">Post #13</a>
	                </div>
	            </div>
              <div id="likers-container-343270" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="343270"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #13"></div>
  </section>
</div>
    <div class="postbit" id="343275" data-post-id="343275">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="sbuttgereit" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/sbuttgereit/120/30162_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  sbuttgereit
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<aside class="quote no-group" data-username="yukster" data-post="11" data-topic="66810">
<div class="title">
<div class="quote-controls"></div>
<img alt="" width="24" height="24" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/yukster/48/13609_2.png" class="avatar"> yukster:</div>
<blockquote>
<p>it will give you a warning for just ‘_’ and tell you to give it a more meaningful name.</p>
</blockquote>
</aside>
<p>Hmm… I use Credo on pretty much everything and <code>_</code> for placeholders both in function heads and to avoid Dialyzer unmatched return complaints… But I don’t recall seeing the Credo warning you speak of.   Are you sure this is stock/default Credo?</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="343275" data-batch-url="/posts/batch_likers">
                        0
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/what-do-you-think-about-using-vs-other/66810/15">Post #14</a>
	                </div>
	            </div>
              <div id="likers-container-343275" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="343275"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #14"></div>
  </section>
</div>
    <div class="postbit" id="343277" data-post-id="343277">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="dimitarvp" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/dimitarvp/120/38664_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  dimitarvp
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<aside class="quote no-group" data-username="sodapopcan" data-post="14" data-topic="66810">
<div class="title">
<div class="quote-controls"></div>
<img alt="" width="24" height="24" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/sodapopcan/48/34668_2.png" class="avatar"> sodapopcan:</div>
<blockquote>
<p>In the spirit of documentation as code, I write:</p>
<pre data-code-wrap="elixir"><code class="lang-elixir">case result do
  {:ok, data} -&gt; do_action(data)
  {:error, _} -&gt; fail()
end
</code></pre>
<p>This leaves little up to the imagination of an unsuspecting reader: they can see the exact shape and don’t have to look anything up.</p>
</blockquote>
</aside>
<p>Not quite exact f.ex. I’d also do <code>{:error, _atom}</code> for the sake of the future me (or another dev) who would want to do something with the value sometime in <em>TheFuture™</em>. Could save them some time looking up the API’s <code>@spec</code>-s.</p>
<aside class="quote no-group" data-username="sodapopcan" data-post="14" data-topic="66810">
<div class="title">
<div class="quote-controls"></div>
<img alt="" width="24" height="24" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/sodapopcan/48/34668_2.png" class="avatar"> sodapopcan:</div>
<blockquote>
<p>Otherwise, if you’ve been writing Elixir for more than a minute and you don’t know that the opposing match of an <code>:ok</code> tuple isn’t some form of <code>:error</code> then that’s a whole other problem and naming your matches as such isn’t going to fix that.</p>
</blockquote>
</aside>
<p>Let me introduce you to <a href="https://hexdocs.pm/elixir/Integer.html#parse/2" rel="noopener nofollow ugc"><code>Integer.parse/2</code></a> <img src="https://forum.elixirforum.com/uploads/default/original/2X/6/6c3193d1dd46244da3c8c6f719c9f5e2abdd5ae8.gif?v=15" title=":003:" class="emoji emoji-custom" alt=":003:" loading="lazy" width="20" height="20"></p>
<pre data-code-wrap="elixir"><code class="lang-elixir">case Integer.parse(input) do
  {int, ""} -&gt; "all good"
  {_int, _string_remainder} -&gt; "oops, only partially an integer"
  :error -&gt; "sorry, not an integer at all"
end
</code></pre> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="343277" data-batch-url="/posts/batch_likers">
                        0
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/what-do-you-think-about-using-vs-other/66810/16">Post #15</a>
	                </div>
	            </div>
              <div id="likers-container-343277" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="343277"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #15"></div>
  </section>
</div>
    <div class="postbit" id="343284" data-post-id="343284">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="yukster" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/yukster/120/13609_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  yukster
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>Ahh, it’s disabled by default. Definitely enabled at my current job (with about a dozen Elixir projects). Pretty sure it was enabled at my last job too though it’s been a few years now and hard to remember for sure.</p>
<aside class="onebox allowlistedgeneric" data-onebox-src="https://credo.hexdocs.pm/Credo.Check.Consistency.UnusedVariableNames.html">
  <header class="source">

      <a href="https://credo.hexdocs.pm/Credo.Check.Consistency.UnusedVariableNames.html" target="_blank" rel="noopener nofollow ugc">credo.hexdocs.pm</a>
  </header>

  <article class="onebox-body">
    

<h3><a href="https://credo.hexdocs.pm/Credo.Check.Consistency.UnusedVariableNames.html" target="_blank" rel="noopener nofollow ugc">Credo.Check.Consistency.UnusedVariableNames — Credo v1.7.19</a></h3>



  </article>

  <div class="onebox-metadata">
    
    
  </div>

  <div style="clear: both"></div>
</aside>
 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="343284" data-batch-url="/posts/batch_likers">
                        0
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/what-do-you-think-about-using-vs-other/66810/17">Post #16</a>
	                </div>
	            </div>
              <div id="likers-container-343284" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="343284"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #16"></div>
  </section>
</div>
    <div class="postbit" id="343286" data-post-id="343286">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="yukster" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/yukster/120/13609_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  yukster
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>Well, maybe that’s my decade plus in Ruby-land showing through. Even though I left Ruby behind almost 6 years ago, I still have RuboCop PTSD.</p>
<p>Both RuboCop and Credo allow customizing rules but I’ve always felt that there was a strong impetus to adopt the defaults and keep customization to a minimum. I definitely felt that way while working hard to keep RuboCop happy back in my Ruby days.</p>
<p>I mean, if you make Credo or RuboCop a PR check then you have to conform to the rules in order to get your work merged and complete stories. And I don’t think that’s a bad thing (the RuboCop PTSD was because I felt that it went too far and was often a source of a lot of friction). Bike-shedding is best avoided at all costs. Consistency and readability of code saves a lot of mental overhead.</p>
<p>But, still, not everyone gets a say in the linter rules so you have to follow them and it sets a standard. But I think I’m misremembering this one; a) it’s not on by default (as I indicated in another response here) and b) like the Phoenix example you shared, there is clearly plenty of important code out there still using bare “_”.</p>
<p>So I’m changing the nature of my chiming in here: “Hey y’all, if you want to settle this and codify it in your codebase, there’s a Credo check: <a href="https://hexdocs.pm/credo/Credo.Check.Consistency.UnusedVariableNames.html" class="inline-onebox" rel="noopener nofollow ugc">Credo.Check.Consistency.UnusedVariableNames — Credo v1.7.19</a>” <img src="https://forum.elixirforum.com/images/emoji/apple/grinning.png?v=15" title=":grinning:" class="emoji" alt=":grinning:" loading="lazy" width="20" height="20"></p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="343286" data-batch-url="/posts/batch_likers">
                        2
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/what-do-you-think-about-using-vs-other/66810/18">Post #17</a>
	                </div>
	            </div>
              <div id="likers-container-343286" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="343286"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #17"></div>
  </section>
</div>
    <div class="postbit" id="343299" data-post-id="343299">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="bjorng" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/bjorng/120/13187_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  bjorng
                  </h3>
		          </div>
						
			          <div class="user-title">
									<span>Erlang Core Team</span>
			          </div>
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<aside class="quote no-group" data-username="sodapopcan" data-post="4" data-topic="66810">
<div class="title">
<div class="quote-controls"></div>
<img alt="" width="24" height="24" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/sodapopcan/48/34668_2.png" class="avatar"> sodapopcan:</div>
<blockquote>
<p>And, <em>technically</em> they aren’t equivalent as <code>_other</code> gets bound whereas <code>_</code> doesn’t. I’m not advocating that is some sort of meaningful optimization, just sayin’ <img src="https://forum.elixirforum.com/images/emoji/apple/upside_down_face.png?v=15" title=":upside_down_face:" class="emoji" alt=":upside_down_face:" loading="lazy" width="20" height="20"></p>
</blockquote>
</aside>
<p>Just to make it perfectly clear, this is not an optimization, not even a slight one. The Erlang compiler can see when a variable is unused and will emit the same code for matching <code>_</code> as when matching <code>_other</code> or some other variable that is never used. Actually, to avoid having to handle  <code>_</code> as a special case, the Erlang compiler replaces  <code>_</code>  with a freshly created variable that will never be used.</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="343299" data-batch-url="/posts/batch_likers">
                        9
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/what-do-you-think-about-using-vs-other/66810/19">Post #18</a>
	                </div>
	            </div>
              <div id="likers-container-343299" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="343299"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #18"></div>
  </section>
</div>
    <div class="postbit" id="343310" data-post-id="343310">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="sodapopcan" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/sodapopcan/120/34668_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  sodapopcan
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<aside class="quote no-group" data-username="dimitarvp" data-post="16" data-topic="66810">
<div class="title">
<div class="quote-controls"></div>
<img alt="" width="24" height="24" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/dimitarvp/48/38664_2.png" class="avatar"> dimitarvp:</div>
<blockquote>
<p>I’d also do <code>{:error, _atom}</code> for the sake of the future me (or another dev) who would want to do something with the value sometime in <em>TheFuture™</em>.</p>
</blockquote>
</aside>
<p>Ehn, fair, but I don’t think this adds too much.  That’s it’s “unwrapping” an error tuple is all the information I need, though I dunno, I’ll think about it next time I’m in this situation.</p>
<aside class="quote no-group" data-username="dimitarvp" data-post="16" data-topic="66810">
<div class="title">
<div class="quote-controls"></div>
<img alt="" width="24" height="24" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/dimitarvp/48/38664_2.png" class="avatar"> dimitarvp:</div>
<blockquote>
<pre data-code-wrap="elixir"><code class="lang-elixir">case Integer.parse(input) do
  {int, ""} -&gt; "all good"
  {_int, _string_remainder} -&gt; "oops, only partially an integer"
  :error -&gt; "sorry, not an integer at all"
end
</code></pre>
</blockquote>
</aside>
<p>Well s <img src="https://forum.elixirforum.com/images/emoji/apple/poop.png?v=15" title=":poop:" class="emoji" alt=":poop:" loading="lazy" width="20" height="20"> t, fair enough!</p>
<aside class="quote group-Erlang-Core-Team" data-username="bjorng" data-post="19" data-topic="66810">
<div class="title">
<div class="quote-controls"></div>
<img alt="" width="24" height="24" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/bjorng/48/13187_2.png" class="avatar"> bjorng:</div>
<blockquote>
<p>Just to make it perfectly clear, this is not an optimization, not even a slight one. The Erlang compiler can see when a variable is unused and will emit the same code for matching <code>_</code> as when matching <code>_other</code> or some other variable that is never used. Actually, to avoid having to handle <code>_</code> as a special case, the Erlang compiler replaces <code>_</code> with a freshly created variable that will never be used.</p>
</blockquote>
</aside>
<p>Oh good to know, thank you!!</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="343310" data-batch-url="/posts/batch_likers">
                        1
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/what-do-you-think-about-using-vs-other/66810/20">Post #19</a>
	                </div>
	            </div>
              <div id="likers-container-343310" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="343310"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #19"></div>
  </section>
</div>
    <div class="postbit" id="343316" data-post-id="343316">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="bartblast" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/bartblast/120/17647_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  bartblast
                  </h3>
		          </div>
						
			          <div class="user-title">
									<span>Creator of Hologram</span>
			          </div>
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>I usually use <code>_fallback</code> in such cases.</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="343316" data-batch-url="/posts/batch_likers">
                        0
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/what-do-you-think-about-using-vs-other/66810/21">Post #20</a>
	                </div>
	            </div>
              <div id="likers-container-343316" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="343316"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #20"></div>
  </section>
</div>
</template></turbo-stream><turbo-stream action="replace" target="load-more-container"><template><div id="load-more-container" class="load-more-container">
    <a class="load-more-button" data-turbo-stream="true" href="/topics/66810/load_more?page=3">Load more posts (1 remaining)</a>
</div></template></turbo-stream>