{"provider_name":"Hatena Blog","version":"1.0","height":"190","type":"rich","published":"2024-03-01 14:37:16","width":"100%","title":"\u3010Swift\u3011enum\u306eassociated value \u306b\u30c7\u30d5\u30a9\u30eb\u30c8\u5024\u3092\u3064\u3051\u308b","author_name":"nakaoka3","image_url":null,"categories":[],"author_url":"https://blog.hatena.ne.jp/nakaoka3/","description":"\u4ee5\u4e0b\u306e\u3088\u3046\u306aSwift\u306e\u30b3\u30fc\u30c9\u3092\u66f8\u3044\u305f\u3002 enum Example { case one case two(name : String) case three(name : String = \"taro\") } print(Example.three(name: \"hanako\")) // three(name: \"hanako\") print(Example.three()) // three(name: \"taro\") enum\u306eassociated value\u306b\u30c7\u30d5\u30a9\u30eb\u30c8\u5024\u3092\u3064\u3051\u3089\u308b\u3068\u306f\u601d\u3063\u3066\u3044\u306a\u304b\u3063\u305f\u306e\u3067\u3001\u30b3\u30f3\u30d1\u30a4\u30eb\u30a8\u30e9\u30fc\u306b\u306a\u308b\u3060\u308d\u3046\u306a\u3068\u601d\u3063\u3066\u3044\u305f\u304c\u3001\u4e88\u60f3\u306b\u53cd\u3057\u3066\u30b3\u30f3\u30d1\u30a4\u30eb\u3067\u304d\u305f\u3002Sw\u2026","url":"https://nakaoka3.hatenablog.com/entry/2024/03/swift-enum-default-associated-value","blog_title":"\u306f\u3066\u306a\u30d6\u30ed\u30b0","blog_url":"https://nakaoka3.hatenablog.com/","provider_url":"https://hatena.blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fnakaoka3.hatenablog.com%2Fentry%2F2024%2F03%2Fswift-enum-default-associated-value\" title=\"\u3010Swift\u3011enum\u306eassociated value \u306b\u30c7\u30d5\u30a9\u30eb\u30c8\u5024\u3092\u3064\u3051\u308b - \u306f\u3066\u306a\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>"}