{"type":"rich","author_name":"horie1024","blog_url":"https://horie1024.hatenablog.com/","height":"190","provider_url":"https://hatena.blog","description":"Twitter\u3067#KotlinConf18jp\u306e\u30cf\u30c3\u30b7\u30e5\u30bf\u30b0\u3092\u773a\u3081\u3066\u305f\u3089\u6b21\u306e\u3088\u3046\u306a\u554f\u984c\u304c\u6d41\u308c\u3066\u304d\u305f\u3002 package syntax.naughtyWhen // by Ilya Gorbunov fun f(x: Boolean) { when(x) { x == true -> println(\"$x TRUE\") x == false -> println(\"$x FALSE\") } } f(true) f(false) // What will it print? // a) true TRUE; false FALSE // b) true TRUE; false TRUE // c)\u2026","blog_title":"horie1024\u306e\u65e5\u8a18","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhorie1024.hatenablog.com%2Fentry%2F2018%2F10%2F06%2F233356\" title=\"kotlin-puzzlers\u306enaughtyWhen\u554f\u984c - horie1024\u306e\u65e5\u8a18\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","categories":["Kotilin"],"width":"100%","author_url":"https://blog.hatena.ne.jp/horie1024/","title":"kotlin-puzzlers\u306enaughtyWhen\u554f\u984c","published":"2018-10-06 23:33:56","image_url":null,"provider_name":"Hatena Blog","url":"https://horie1024.hatenablog.com/entry/2018/10/06/233356","version":"1.0"}