<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>athos</author_name>
  <author_url>https://blog.hatena.ne.jp/athos/</author_url>
  <blog_title>Homoiconic Days</blog_title>
  <blog_url>https://athos.hatenablog.com/</blog_url>
  <categories>
    <anon>clojure</anon>
    <anon>マクロ</anon>
  </categories>
  <description>昨日に引き続き、Clojureマクロの暗黙の引数&amp;envについて。&amp;envを通してマクロ呼び出しのフォームを囲む環境が手に入るわけで、これを利用しておもしろいことはできないだろうか。そう考えているうちに、スコープを曲げる - 主題のない日記で出てきた例を思い出した。こんな例だ。 (let ((x 1)) (let/scope d1 (let ((x 2)) (let/scope d2 (let ((x 3)) (list (d1 x) (d2 x) x)))))) ;=&gt; (1 2 3) この例では、Schemeのマクロを使って、本来シャドウイングされて見えないはずの外の環境にアクセスできるよ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fathos.hatenablog.com%2Fentry%2F20101206%2Fbending_scope&quot; title=&quot;暗黙の引数 &amp;amp;env を使ってスコープを曲げてみる - Homoiconic Days&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>2010-12-06 00:00:00</published>
  <title>暗黙の引数 &amp;env を使ってスコープを曲げてみる</title>
  <type>rich</type>
  <url>https://athos.hatenablog.com/entry/20101206/bending_scope</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
