{"height":"190","author_name":"a1026302","blog_title":"\u3082\u306e\u3065\u304f\u308a\u306e\u30d6\u30ed\u30b0","url":"https://a1026302.hatenablog.com/entry/2021/12/11/160859","width":"100%","blog_url":"https://a1026302.hatenablog.com/","version":"1.0","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fa1026302.hatenablog.com%2Fentry%2F2021%2F12%2F11%2F160859\" title=\"\u3010Crystal\u3011\u30e6\u30cb\u30aa\u30f3\u578b\u3067\u6f14\u7b97\u51e6\u7406 - \u3082\u306e\u3065\u304f\u308a\u306e\u30d6\u30ed\u30b0\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","title":"\u3010Crystal\u3011\u30e6\u30cb\u30aa\u30f3\u578b\u3067\u6f14\u7b97\u51e6\u7406","author_url":"https://blog.hatena.ne.jp/a1026302/","provider_name":"Hatena Blog","type":"rich","categories":["Crystal","Crystal-\u69cb\u6587"],"published":"2021-12-11 16:08:59","provider_url":"https://hatena.blog","image_url":"https://cdn.user.blog.st-hatena.com/default_entry_og_image/157314735/1599576939808917","description":"Ruby \u30e9\u30a4\u30af\u306a\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9e crystal \u306b\u3064\u3044\u3066\u52c9\u5f37\u3057\u3066\u307e\u3059\u3002 \u4eca\u56de\u306f Crystal \u3067\u30e6\u30cb\u30aa\u30f3\u578b\u306e\u5909\u6570\u306b\u3064\u3044\u3066\u6f14\u7b97\u3092\u884c\u3046\u969b\u306b\u82e6\u52b4\u3057\u305f\u306e\u3067\u3001\u3053\u3053\u306b\u30e1\u30e2\u3092\u6b8b\u3057\u307e\u3059\u3002 REPL \u306e icr \u3067\u691c\u8a3c\u3057\u3066\u307f\u307e\u3057\u305f\u3002\u307e\u305a\u306f\u30e6\u30cb\u30aa\u30f3\u578b\u306e\u5909\u6570(a)\u3092\u4f5c\u308a\u307e\u3059\u3002 icr(0.33.0) > if 1 + 2 == 3 icr(0.33.0) > a = 1 icr(0.33.0) > else icr(0.33.0) > a = nil icr(0.33.0) > end \u78ba\u8a8d\u65b9\u6cd5\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3002 icr(0.33.0) > typeof(a) => (Int32 | Nil) \u3053\u306e\u72b6\u614b\u3067\u6f14\u7b97\u51e6\u2026"}