<?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>C++</anon>
    <anon>Javascript</anon>
    <anon>programming</anon>
  </categories>
  <description>C++ では、 f(false || &quot;hoge&quot;); とした場合、関数 f には真偽値 (true) が渡されますが、JavaScript や多くの Lightweight Language では真となる方の値をそのまま返すようです。この例の場合は文字列が返ってきます。 // JavaScript alert(false || &quot;hoge&quot;); // Ruby puts false || &quot;hoge&quot; 上記のようなコードを実行すると、画面には「hoge」が表示されます。かなり便利そう。まあ、三項演算子使えば C++ でもできるけどねっ! (それを省略できるのが利点なんだけど……)</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.little-cuckoo.jp%2Fentry%2F20060725%2F1153799649&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>2006-07-25 12:54:09</published>
  <title> || 演算子</title>
  <type>rich</type>
  <url>https://www.little-cuckoo.jp/entry/20060725/1153799649</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
