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


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

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<aside class="quote group-Elixir-Core-Team" data-username="Elixir" data-post="1" data-topic="28086">
<div class="title">
<div class="quote-controls"></div>
<img alt="" width="24" height="24" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/elixir/48/15419_2.png" class="avatar"> Elixir:</div>
<blockquote>
<p>[Kernel] Add <code>Kernel.is_struct/1</code></p>
</blockquote>
</aside>
<p><a class="mention" href="/u/josevalim" rel="nofollow">@josevalim</a></p>
<p>Would there be an <code>is_struct/2</code> version?</p>
<pre data-code-wrap="elixir"><code class="lang-elixir">defmodule Example do
  defstruct […]

  def sample(struct) when is_struct(struct, __MODULE__), do: {:ok, struct}
  def sample(_), do: :error
end
</code></pre>
<p>if not is there any naming convention for it (like we have <code>@type t</code> spec)?</p>
<pre data-code-wrap="ELIXIR"><code class="lang-ELIXIR">defmodule Example do
  defstruct […]

  @type t :: %__MODULE__{…}

  defguard is_t(struct) when is_struct(struct) and :erlang.map_get(:__struct__, struct) === __MODULE__

  def sample(struct) when is_t(struct), do: {:ok, struct}
  def sample(_), do: :error
end
</code></pre>
<p>Would be added also other features discussed in this topic?</p><aside class="quote quote-modified" data-post="1" data-topic="14816">
  <div class="title">
    <div class="quote-controls"></div>
    <img alt="" width="24" height="24" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/josevalim/48/1787_2.png" class="avatar">
    <div class="quote-title__text-content">
      <a href="https://forum.elixirforum.com/t/discussion-incorporating-erlang-otp-21-map-guards-in-elixir/14816" rel="nofollow">Discussion: Incorporating Erlang/OTP 21 map guards in Elixir</a> <a class="badge-category__wrapper " href="/c/elixir-news-announcements/official-proposals/134" rel="nofollow"><span data-category-id="134" style="--category-badge-color: #7C1A9C; --category-badge-text-color: #FFFFFF; --parent-category-badge-color: #7C1A9C;" data-parent-category-id="132" data-drop-close="true" class="badge-category --style-square --has-parent"><span class="badge-category__name">Official Proposals</span></span></a>
    </div>
  </div>
  <blockquote>
    Hi everyone, 
Erlang/OTP 21 comes with two new guards contributed by <a class="mention" href="/u/michalmuskala" rel="nofollow">@michalmuskala</a>: map_get/2 and is_map_key/2. Now we need to discuss how we would integrate those in Elixir. This proposal will be broken in three parts, each with their own discussion. Feel free to comment on any conclusion individually or as a group, but please let us know why. 
NOTE: this is a focused thread, so we appreciate if everybody stayed on topic. Feel free to comment anything in regards to maps and guards but avoid of…
  </blockquote>
</aside>

<p>Looks like <a href="https://github.com/hexpm/bob" rel="noopener nofollow ugc">Bob</a> actually sleeps more than a typical human. <img src="https://forum.elixirforum.com/images/emoji/apple/smiley.png?v=15" title=":smiley:" class="emoji" alt=":smiley:" loading="lazy" width="20" height="20"></p>
<p>For sure generally I don’t mind, but if I remember correctly <code>Bob</code> had exactly same problem with at least one previous release as well, so it does not a single standalone edge-case.</p>
<p>Also there are some extra warnings when building <code>elixir</code> at tests step:<br>
<a href="https://github.com/elixir-lang/elixir/issues/9700" class="onebox" target="_blank" rel="noopener nofollow ugc">https://github.com/elixir-lang/elixir/issues/9700</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="157588" 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/elixir-v1-10-0-rc-0-released/28086/23">Post #22</a>
	                </div>
	            </div>
              <div id="likers-container-157588" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="157588"
                     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 #22"></div>
  </section>
</div>
    <div class="postbit" id="157602" data-post-id="157602">
  <section>
    <div class="post-wrap">


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

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>Pelemay 0.0.5 works well on Elixir v1.10.0-rc.0.</p><aside class="onebox allowlistedgeneric" data-onebox-src="https://hex.pm/packages/pelemay">
  <header class="source">
      <img src="https://hex.pm/images/hex-full-a8183c4f9adac71516516d107d402b18.svg?vsn=d" class="site-icon" alt="" width="136" height="120">

      <a href="https://hex.pm/packages/pelemay" target="_blank" rel="noopener nofollow">Hex</a>
  </header>

  <article class="onebox-body">
    <img width="160" height="160" src="https://hex.pm/images/favicon-160-3770bc59f1f8ba7656b4db5a1eacd8e3.png?vsn=d" class="thumbnail onebox-avatar" alt="">

<h3><a href="https://hex.pm/packages/pelemay" target="_blank" rel="noopener nofollow">pelemay</a></h3>

  <p>Pelemay = The Penta (Five) “Elemental Way”: Freedom, Insight, Beauty, Efficiency and Robustness</p>


  </article>

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

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

<p>Try them!</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="157602" 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/elixir-v1-10-0-rc-0-released/28086/24">Post #23</a>
	                </div>
	            </div>
              <div id="likers-container-157602" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="157602"
                     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 #23"></div>
  </section>
</div>
    <div class="postbit" id="157613" data-post-id="157613">
  <section>
    <div class="post-wrap">


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

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<aside class="quote no-group" data-username="Eiji" data-post="23" data-topic="28086">
<div class="title">
<div class="quote-controls"></div>
<img alt="" width="24" height="24" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/eiji/48/36743_2.png" class="avatar"> Eiji:</div>
<blockquote>
<p>Would there be an <code>is_struct/2</code> version?</p>
</blockquote>
</aside>
<p>Unfortunately no. There were some complexities in implementing it. Those interested can dig the discussion on GitHub and link it back here please. <img src="https://forum.elixirforum.com/images/emoji/apple/slight_smile.png?v=15" title=":slight_smile:" class="emoji" alt=":slight_smile:" loading="lazy" width="20" height="20"></p>
<aside class="quote no-group" data-username="Eiji" data-post="23" data-topic="28086">
<div class="title">
<div class="quote-controls"></div>
<img alt="" width="24" height="24" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/eiji/48/36743_2.png" class="avatar"> Eiji:</div>
<blockquote>
<p>Looks like <a href="https://github.com/hexpm/bob" rel="nofollow">Bob </a> actually sleeps more than a typical human.</p>
</blockquote>
</aside>
<p>Haha, we are looking into it. Bob is like conference wifi, when it works, nobody notices. When it fails, everyone does! <img src="https://forum.elixirforum.com/images/emoji/apple/smiley.png?v=15" title=":smiley:" class="emoji" alt=":smiley:" loading="lazy" width="20" height="20"></p>
<aside class="quote no-group" data-username="Eiji" data-post="23" data-topic="28086">
<div class="title">
<div class="quote-controls"></div>
<img alt="" width="24" height="24" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/eiji/48/36743_2.png" class="avatar"> Eiji:</div>
<blockquote>
<p>Also there are some extra warnings when building <code>elixir</code> at tests step:</p>
</blockquote>
</aside>
<p>Thanks, we had already noticed it and we are on it. The warnings are correct in being emitted, but their content is partially wrong.</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="157613" data-batch-url="/posts/batch_likers">
                        4
                      </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/elixir-v1-10-0-rc-0-released/28086/25">Post #24</a>
	                </div>
	            </div>
              <div id="likers-container-157613" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="157613"
                     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 #24"></div>
  </section>
</div>
    <div class="postbit" id="157614" data-post-id="157614">
  <section>
    <div class="post-wrap">


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

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<aside class="quote group-livebook_core_team" data-username="josevalim" data-post="25" data-topic="28086">
<div class="title">
<div class="quote-controls"></div>
<img alt="" width="24" height="24" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/josevalim/48/1787_2.png" class="avatar"> josevalim:</div>
<blockquote>
<p>Haha, we are looking into it. Bob is like conference wifi, when it works, nobody notices. When it fails, everyone does! <img src="https://forum.elixirforum.com/images/emoji/apple/smiley.png?v=15" title=":smiley:" class="emoji" alt=":smiley:" loading="lazy" width="20" height="20"></p>
</blockquote>
</aside>
<p>Maybe make checking <a href="https://bobs-list.kobrakai.de/" rel="nofollow">https://bobs-list.kobrakai.de/</a> part of the rc release todo list <img src="https://forum.elixirforum.com/images/emoji/apple/slight_smile.png?v=15" title=":slight_smile:" class="emoji" alt=":slight_smile:" 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="157614" 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/elixir-v1-10-0-rc-0-released/28086/26">Post #25</a>
	                </div>
	            </div>
              <div id="likers-container-157614" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="157614"
                     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 #25"></div>
  </section>
</div>
    <div class="postbit" id="157620" data-post-id="157620">
  <section>
    <div class="post-wrap">


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

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>Bob is good now and the archives and docs for 1.10.0-rc.0 are available.</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="157620" 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/elixir-v1-10-0-rc-0-released/28086/27">Post #26</a>
	                </div>
	            </div>
              <div id="likers-container-157620" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="157620"
                     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 #26"></div>
  </section>
</div>
    <div class="postbit" id="157623" data-post-id="157623">
  <section>
    <div class="post-wrap">


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

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<aside class="quote group-livebook_core_team" data-username="josevalim" data-post="25" data-topic="28086">
<div class="title">
<div class="quote-controls"></div>
<img alt="" width="24" height="24" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/josevalim/48/1787_2.png" class="avatar"> josevalim:</div>
<blockquote>
<p>Unfortunately no. There were some complexities in implementing it. Those interested can dig the discussion on GitHub and link it back here please. <img src="https://forum.elixirforum.com/images/emoji/apple/slight_smile.png?v=15" title=":slight_smile:" class="emoji" alt=":slight_smile:" loading="lazy" width="20" height="20"></p>
</blockquote>
</aside>
<p><a href="https://github.com/elixir-lang/elixir/pull/9470#discussion_r341824532" class="onebox" target="_blank" rel="noopener nofollow ugc">https://github.com/elixir-lang/elixir/pull/9470#discussion_r341824532</a></p>
<p>cc <a class="mention" href="/u/eiji" rel="nofollow">@Eiji</a></p>
<p>However there was a proposed <a href="https://bugs.erlang.org/browse/ERL-1122?focusedCommentId=16007" rel="nofollow">solution on Erlang issue tracker</a> and I need to check if this will pass the Dialyzer and will emit no warnings.</p>
<p><strong>EDIT:</strong> It will not work, at least not without deep changes to the <code>Modules.Types.Infer</code> as currently adding <code>or :fail</code> to the guard generates hell lot of warnings.</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="157623" data-batch-url="/posts/batch_likers">
                        3
                      </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/elixir-v1-10-0-rc-0-released/28086/28">Post #27</a>
	                </div>
	            </div>
              <div id="likers-container-157623" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="157623"
                     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 #27"></div>
  </section>
</div>
    <div class="postbit" id="157627" data-post-id="157627">
  <section>
    <div class="post-wrap">


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

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>I’m not sure if this is intended as a breaking change, but I guess at least it should be added to the changelog: <a href="https://forum.elixirforum.com/t/uri-error-on-getting-gravatar-elixir-v1-10-0-rc-0/28103/3" class="inline-onebox" rel="nofollow">URI error on getting gravatar elixir v1.10.0-rc.0 - #3 by pau-riosa</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="157627" 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/elixir-v1-10-0-rc-0-released/28086/29">Post #28</a>
	                </div>
	            </div>
              <div id="likers-container-157627" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="157627"
                     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 #28"></div>
  </section>
</div>
    <div class="postbit" id="157635" data-post-id="157635">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="tme_317" src="/assets/icons/user-9f439610.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  tme_317
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<aside class="quote no-group" data-username="Eiji" data-post="23" data-topic="28086">
<div class="title">
<div class="quote-controls"></div>
<img alt="" width="24" height="24" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/eiji/48/36743_2.png" class="avatar"> Eiji:</div>
<blockquote>
<p>Would there be an <code>is_struct/2</code> version?</p>
<pre data-code-wrap="elixir"><code class="lang-elixir">defmodule Example do
  defstruct […]

  def sample(struct) when is_struct(struct, __MODULE__), do: {:ok, struct}
  def sample(_), do: :error
end
</code></pre>
</blockquote>
</aside>
<p>Pattern matching works great here without needing <code>is_struct/2</code>.</p>
<pre data-code-wrap="elixir"><code class="lang-elixir">def sample(%__MODULE__{} = struct), do: {:ok, struct}
</code></pre>
<p>Actually not sure in what situations I should use the new guard since <code>is_struct/1</code> could also be written as:</p>
<pre data-code-wrap="elixir"><code class="lang-elixir">def sample(%_{} = struct), do: {:ok, struct}
</code></pre>
<p>The guard reads intent more explicitly to me but AFAIK the pattern matching works as well.</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="157635" 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/elixir-v1-10-0-rc-0-released/28086/30">Post #29</a>
	                </div>
	            </div>
              <div id="likers-container-157635" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="157635"
                     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 #29"></div>
  </section>
</div>
    <div class="postbit" id="157636" data-post-id="157636">
  <section>
    <div class="post-wrap">


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

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<aside class="quote no-group" data-username="gmile" data-post="15" data-topic="28086">
<div class="title">
<div class="quote-controls"></div>
<img alt="" width="24" height="24" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/gmile/48/33982_2.png" class="avatar"> gmile:</div>
<blockquote>
<p>Is it working for specific function from the module as well, e.g. mix xref callers MyMod.my_fun?</p>
</blockquote>
</aside>
<p>That doesn’t work. I get this error when trying to pass a function to <code>mix xref callers</code>:</p>
<pre data-code-wrap="elixir"><code class="lang-elixir">** (Mix) xref callers MODULE expects a MODULE, got: XXX.Import.Jobs.process_job
</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="157636" 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/elixir-v1-10-0-rc-0-released/28086/31">Post #30</a>
	                </div>
	            </div>
              <div id="likers-container-157636" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="157636"
                     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 #30"></div>
  </section>
</div>
    <div class="postbit" id="157638" data-post-id="157638">
  <section>
    <div class="post-wrap">


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

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<aside class="quote no-group" data-username="tme_317" data-post="30" data-topic="28086">
<div class="title">
<div class="quote-controls"></div>
<img alt="" width="24" height="24" src="https://forum.elixirforum.com/letter_avatar_proxy/v4/letter/t/0ea827/48.png" class="avatar"> tme_317:</div>
<blockquote>
<p>Pattern matching works great here without needing <code>is_struct/2</code>.</p>
</blockquote>
</aside>
<p>sure, it’s more useful in <code>defguard</code> and <code>defguardp</code></p>
<p>Imagine you want to write <code>is_t</code> guard like:</p>
<pre data-code-wrap="elixir"><code class="lang-elixir">defmodule Example do
  defstruct […]

  @type t :: %__MODULE__{…}

  defguard is_t(struct) when is_struct(struct, __MODULE__) …
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="157638" 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/elixir-v1-10-0-rc-0-released/28086/32">Post #31</a>
	                </div>
	            </div>
              <div id="likers-container-157638" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="157638"
                     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 #31"></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/28086/load_more?page=4">Load more posts (15 remaining)</a>
</div></template></turbo-stream>