{"image_url":null,"type":"rich","height":"190","author_url":"https://blog.hatena.ne.jp/bleis-tift/","published":"2020-12-11 00:00:00","description":"F# Advent Calendar 2020\u306e11\u65e5\u76ee\u306e\u30a8\u30f3\u30c8\u30ea\u30fc\u3067\u3059\u3002 5\u65e5\u76ee\u306b\u7d9a\u3044\u3066\u307e\u305f nameof \u306e\u8a71\u3067\u3059\u3002 nameof \u306b\u306fF#\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u3068\u3057\u3066\u306f\u5f53\u7136\u3060\u3051\u3069\u5fd8\u308c\u304c\u3061\u306a\u5236\u7d04\u304c\u3042\u308a\u307e\u3059\u3002 \u4f55\u306e\u554f\u984c\u3082\u306a\u3044\u3088\u3046\u306b\u898b\u3048\u307e\u3059\u304c\u3001\u3053\u308c\u306f\u30b3\u30f3\u30d1\u30a4\u30eb\u30a8\u30e9\u30fc\u3067\u3059\u3002 let f () = nameof f \u3053\u308c\u304c\u30c0\u30e1\u306a\u306e\u306f\u3001 f \u306f f \u306e\u5b9a\u7fa9\u672c\u4f53\u3067\u306f\u307e\u3060\u898b\u3048\u306a\u3044\u306e\u306b\u53c2\u7167\u3057\u3088\u3046\u3068\u3057\u3066\u3044\u308b\u304b\u3089\u3067\u3059\u3002 let f x = match x with | 0 -> 0 | x -> f (x - 1) + x \u3053\u308c\u304c\u30c0\u30e1\u306a\u306e\u3068\u540c\u3058\u7406\u7531\u3067\u3059\u306d\u3002 \u306a\u306e\u3067\u3001\u3082\u3057\u3053\u3046\u3044\u3046\u3053\u3068\u304c\u3057\u305f\u3051\u308c\u3070\u3001 let rec f (\u2026","width":"100%","provider_url":"https://hatena.blog","blog_title":"\u3050\u308b\u3050\u308b\uff5e","author_name":"bleis-tift","provider_name":"Hatena Blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fbleis-tift.hatenablog.com%2Fentry%2Fnameof-pitfall\" title=\"nameof\u306e\u7f60 - \u3050\u308b\u3050\u308b\uff5e\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","url":"https://bleis-tift.hatenablog.com/entry/nameof-pitfall","title":"nameof\u306e\u7f60","categories":["F#"],"version":"1.0","blog_url":"https://bleis-tift.hatenablog.com/"}