{"version":"1.0","categories":["Haskell","\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0"],"published":"2016-10-20 17:55:38","provider_url":"https://hatena.blog","blog_title":"Object.create(null)","blog_url":"https://susisu.hatenablog.com/","type":"rich","url":"https://susisu.hatenablog.com/entry/2016/10/20/175538","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsusisu.hatenablog.com%2Fentry%2F2016%2F10%2F20%2F175538\" title=\"\u5165\u308c\u5b50\u306b\u306a\u3063\u305f do \u8a18\u6cd5\u306e\u5c55\u958b - Object.create(null)\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","author_name":"susisu","width":"100%","provider_name":"Hatena Blog","title":"\u5165\u308c\u5b50\u306b\u306a\u3063\u305f do \u8a18\u6cd5\u306e\u5c55\u958b","height":"190","description":"\u4f8b\u3048\u3070 JavaScript \u3067 let x = (() => { let y = foo; return bar(y); })(); \u3092 let y = foo; let x = bar(y); \u3068\u66f8\u304d\u63db\u3048\u3066\u3082\u826f\u304b\u3063\u305f\u308a *1, Perl \u3067 my $x = do { my $y = foo; bar($y); }; \u3092 my $y = foo; my $x = bar($y); \u3068\u66f8\u304d\u63db\u3048\u3066\u3082\u826f\u304b\u3063\u305f\u308a\u3059\u308b\u3088\u3046\u306b, Haskell \u3067\u3082 do { x <- do { y <- foo; bar y; }; baz x } \u3092 do { y <- foo; x <- bar y; baz x\u2026","image_url":null,"author_url":"https://blog.hatena.ne.jp/susisu/"}