<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>cranebird</author_name>
  <author_url>https://blog.hatena.ne.jp/cranebird/</author_url>
  <blog_title>cranebirdの日記</blog_title>
  <blog_url>https://cranebird.hatenadiary.org/</blog_url>
  <categories>
  </categories>
  <description>http://d.hatena.ne.jp/cranebird/20080322/1206197358 で気にしたような、コンパイラだとかインタプリタだとかのような複雑なプログラムをちゃんと実装するには、何らかの手法が必要。 何となく「契約による設計」という言葉を思い出した。知っているのは不変条件、事前条件、事後条件という言葉くらいだけど。 macro を使えば、関数定義の際に常に条件を指定させることが可能だ。それにまともに使ったことはないけど、 CLOS のメソッドコンビネーションを使えば、対象とするメソッドの実行前後に、チェック用のメソッドを走らせることができる。 以下はスタッククラスに事…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fcranebird.hatenadiary.org%2Fentry%2F20080323%2F1206275615&quot; title=&quot; Design by contract - cranebirdの日記&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>2008-03-23 21:33:35</published>
  <title> Design by contract</title>
  <type>rich</type>
  <url>https://cranebird.hatenadiary.org/entry/20080323/1206275615</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
