{"image_url":"http://cdn.mogile.archive.st-hatena.com/v1/image/aipacommander/297789129598967254.gif","url":"https://www.aipacommander.com/entry/2015/12/28/125838","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.aipacommander.com%2Fentry%2F2015%2F12%2F28%2F125838\" title=\"\u3010Swift\u3011Swift\u306eswitch\u6587\u30a8\u30e9\u30fc - IT\u306e\u968a\u9577\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>","provider_name":"Hatena Blog","title":"\u3010Swift\u3011Swift\u306eswitch\u6587\u30a8\u30e9\u30fc","blog_url":"https://www.aipacommander.com/","version":"1.0","published":"2015-12-28 12:58:38","blog_title":"IT\u306e\u968a\u9577\u306e\u30d6\u30ed\u30b0","type":"rich","width":"100%","height":"190","description":"// ths -> 1000, hnd -> 100, ten -> 10 // \u3053\u3093\u306a\u611f\u3058\u306eswitch\u6587\u3092\u7528\u610f\u3057\u305f var multiplication: Int switch input { case \"ths\": multiplication = 1000 case \"hnd\": multiplication = 100 case \"ten\": multiplication = 10 } \u304c\u3001\u30a8\u30e9\u30fc\u767a\u751f Main.swift:16:1: error: switch must be exhaustive, consider adding a default clause \u3069\u3046\u3084\u3089\u3001\u5024\u306e\u3059\u2026","categories":["Swift"],"author_url":"https://blog.hatena.ne.jp/aipacommander/","author_name":"aipacommander","provider_url":"https://hatena.blog"}