{"version":"1.0","published":"2019-04-21 20:38:32","author_url":"https://blog.hatena.ne.jp/susisu/","width":"100%","categories":["\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0","Atom","\u5c0f\u30cd\u30bf"],"author_name":"susisu","height":"190","type":"rich","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsusisu.hatenablog.com%2Fentry%2F2019%2F04%2F21%2F203832\" title=\"\u30d1\u30bf\u30fc\u30f3\u30de\u30c3\u30c1\u306e\u69cb\u6587\u304c\u524d\u7f6e\u304b\u5f8c\u7f6e\u304b\u899a\u3048\u3089\u308c\u306a\u3044\u4eba\u304c\u3084\u308a\u304c\u3061\u306a\u3053\u3068 - 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>","blog_title":"Object.create(null)","description":"\u7a81\u7136\u601d\u3044\u51fa\u3057\u3066\u968f\u5206\u524d\u306e\u30cd\u30bf\u3092\u5f15\u3063\u5f35\u308a\u51fa\u3057\u3066\u304d\u307e\u3057\u305f. OCaml \u3068 Scala \u306e\u30d1\u30bf\u30fc\u30f3\u30de\u30c3\u30c1\u69cb\u6587\u306f\u5171\u306b match \u3068\u3044\u3046\u30ad\u30fc\u30ef\u30fc\u30c9\u3092\u4f7f\u3044\u307e\u3059\u304c, \u524d\u7f6e / \u5f8c\u7f6e\u304c\u7570\u306a\u308b\u305f\u3081, \u4ea4\u4e92\u306b\u66f8\u3044\u3066\u3044\u308b\u3068\u6df7\u4e71\u3057\u3066\u7d50\u69cb\u306a\u983b\u5ea6\u3067\u9593\u9055\u3048\u307e\u3059. let y = match x with | Some n -> n | None -> 0 val y = x match { case Some(n) => n case None => 0 } \u3042\u3068\u3054\u304f\u7a00\u306b\u5148\u306b case \u66f8\u3044\u3066\u3057\u307e\u3063\u305f\u308a\u3059\u308b. \u3053\u308c\u306f\u5b8c\u5168\u306b\u4f59\u8ac7\u3067\u3059. y = case x of Just n -> n Nothing -> 0 \u8a71\u3092\u623b\u3057\u3066\u2026","provider_name":"Hatena Blog","provider_url":"https://hatena.blog","image_url":null,"blog_url":"https://susisu.hatenablog.com/","url":"https://susisu.hatenablog.com/entry/2019/04/21/203832","title":"\u30d1\u30bf\u30fc\u30f3\u30de\u30c3\u30c1\u306e\u69cb\u6587\u304c\u524d\u7f6e\u304b\u5f8c\u7f6e\u304b\u899a\u3048\u3089\u308c\u306a\u3044\u4eba\u304c\u3084\u308a\u304c\u3061\u306a\u3053\u3068"}