<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>minekoa</author_name>
  <author_url>https://blog.hatena.ne.jp/minekoa/</author_url>
  <blog_title>みねこあ</blog_title>
  <blog_url>https://minekoa.hatenadiary.org/</blog_url>
  <categories>
    <anon>プログラミングその他</anon>
  </categories>
  <description>定数との比較 #2 - odz buffer さんより、 ふーむ、PMD 的には &quot;hoge&quot;.equals(stringValue) が推奨らしい。そういえば、C では単純ミスで比較が代入にならないように if (a == 10) ではなく if (10 == a) とするやり方があるけど、こういうのは普通に lint なり何なりの静的解析ツールを使えば防げるように思うんだけどもどうだろう。 を読んで、C# の場合、評価式の部分はキッチリ bool値 しかダメなので、数値になってしまったりするミス代入の場合でもちゃんとエラーになる――というのを知ったとき、当時バリバリの Cプログラマだった私…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fminekoa.hatenadiary.org%2Fentry%2F20070812%2F1186905181&quot; title=&quot; ifの評価式の中 - みねこあ&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-08-12 16:53:01</published>
  <title> ifの評価式の中</title>
  <type>rich</type>
  <url>https://minekoa.hatenadiary.org/entry/20070812/1186905181</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
