<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>leafcage</author_name>
  <author_url>https://blog.hatena.ne.jp/leafcage/</author_url>
  <blog_title>cafegale(LeafCage備忘録)</blog_title>
  <blog_url>https://leafcage.hateblo.jp/</blog_url>
  <categories>
    <anon>python</anon>
  </categories>
  <description>私はほとんど vimscript しか触ってこなかったのだけど、最近必要に応じて他の言語にも手を出すようになった。 それでちょっと触り初めて気持ち悪く感じたところ。 なんかあったら追記する。 三項演算子が汚いこと 三項演算子を使うと行を減らせるし、うまく使えば論理が理解しやすくなる。（下手くそな使い方をすると暗号になってしまうが） vimscriptでは特に代入時に三項演算子を多用していた。そうすれば最終的にやりたいことは代入であるということをはじめに示せる。 それで一般的な三項演算子は先に条件を書いて、?と:で結果を区切る。ところがpythonの三項演算子はなんと先にTrueの値を書いてその…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fleafcage.hateblo.jp%2Fentry%2F20170630%2F1498790881&quot; title=&quot;python触り初めて嫌に感じたところ - cafegale(LeafCage備忘録)&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>2017-06-30 11:48:01</published>
  <title>python触り初めて嫌に感じたところ</title>
  <type>rich</type>
  <url>https://leafcage.hateblo.jp/entry/20170630/1498790881</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
