<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>wata_d</author_name>
  <author_url>https://blog.hatena.ne.jp/wata_d/</author_url>
  <blog_title>閑古鳥</blog_title>
  <blog_url>https://www.little-cuckoo.jp/</blog_url>
  <categories>
    <anon>programming</anon>
  </categories>
  <description>if (hoge || foo &amp;&amp; bar) { // ... } &amp;&amp;演算子の方が優先度が高いため、上記のコードは if (hoge || (foo &amp;&amp; bar)) { // ... } と解釈されるが、自分の脳内ではなぜか if ((hoge || foo) &amp;&amp; bar) { // ... } となっていたためにしょぼいバグを生んでいた。欝。Cでも論理和より論理積のほうが優先順位高いし、なんでこんなコード書いてしまったのか理解できない。自信ないときは括弧付けとけと。1年生の間違いだよなぁ……。戒めのために晒しておく。</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.little-cuckoo.jp%2Fentry%2F20070719%2F1184838391&quot; title=&quot;演算子の優先順位 - 閑古鳥&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2007-07-19 18:46:31</published>
  <title>演算子の優先順位</title>
  <type>rich</type>
  <url>https://www.little-cuckoo.jp/entry/20070719/1184838391</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
