<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>redcandy (redcandy)</title>
    <link>https://ruby-china.org/redcandy</link>
    <description/>
    <language>en-us</language>
    <item>
      <title>ruby 做强类型 DSL 的问题</title>
      <description>&lt;p&gt;比如现在要做一个有类似 C 语言类型检查的 dsl
但是 rb 不会把一个变量规定为一个类型
a = A.new
a = B.new
如果要做类型检查就必须自己手工（没做过，应该很不好做吧）
问题：如何用 rb 做一个强类型 DSL 呢？（不自己做类型检查）&lt;/p&gt;</description>
      <author>redcandy</author>
      <pubDate>Sun, 22 Dec 2019 11:01:01 +0800</pubDate>
      <link>https://ruby-china.org/topics/39361</link>
      <guid>https://ruby-china.org/topics/39361</guid>
    </item>
    <item>
      <title>python 中类似 rb 中 yeild+block 的方法</title>
      <description>&lt;p&gt;rb 中 yeild 加 block 很这个方法，在 Python 中有类似的功能实现吗？
新手问题。&lt;/p&gt;</description>
      <author>redcandy</author>
      <pubDate>Thu, 14 Nov 2019 11:38:33 +0800</pubDate>
      <link>https://ruby-china.org/topics/39248</link>
      <guid>https://ruby-china.org/topics/39248</guid>
    </item>
    <item>
      <title>其他语言类似 ruby string inspect 方法</title>
      <description>&lt;p&gt;小白提问。
ruby 里这个函数觉得特别好用。
平时没有 ruby 的环境，想在 python 等语言里实现这个功能&lt;img title=":smiley:" alt="😃" src="https://twemoji.ruby-china.com/2/svg/1f603.svg" class="twemoji"&gt; &lt;img title=":smiley:" alt="😃" src="https://twemoji.ruby-china.com/2/svg/1f603.svg" class="twemoji"&gt; &lt;img title=":grinning:" alt="😀" src="https://twemoji.ruby-china.com/2/svg/1f600.svg" class="twemoji"&gt; &lt;img title=":grinning:" alt="😀" src="https://twemoji.ruby-china.com/2/svg/1f600.svg" class="twemoji"&gt; &lt;/p&gt;</description>
      <author>redcandy</author>
      <pubDate>Mon, 28 Oct 2019 11:56:12 +0800</pubDate>
      <link>https://ruby-china.org/topics/39189</link>
      <guid>https://ruby-china.org/topics/39189</guid>
    </item>
  </channel>
</rss>
