<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>llby</author_name>
  <author_url>https://blog.hatena.ne.jp/llby/</author_url>
  <blog_title>TextScript</blog_title>
  <blog_url>https://llby.hatenadiary.org/</blog_url>
  <categories>
  </categories>
  <description>今日は、前回の話にちょっと追加したいことがあります。 最後の方で、「a &gt; 5」の近くに 「b &gt; 3」があったらという話をしましたが これをどのように定数化したらいいでしょうか？ 「5」と「3」が全く関連しないものであれば それぞれ定数化すればいいんですが、 その差に意味がある時は、こんな感じでしょうか？ local LIST_MAX = 5 local MAX_OFFSET = 2 if a &gt; LIST_MAX then -- aが限界を超えている if b &gt; LIST_MAX - MAX_OFFSET then -- bもbの限界を超えている -- bの限界は、aの限界よりMAX_O…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fllby.hatenadiary.org%2Fentry%2F20120309%2F1331304323&quot; title=&quot;設計について（３）「定数化」 - TextScript&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>2012-03-09 23:45:23</published>
  <title>設計について（３）「定数化」</title>
  <type>rich</type>
  <url>https://llby.hatenadiary.org/entry/20120309/1331304323</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
