{"type":"rich","width":"100%","blog_title":"\u305c\u306e\u305c","blog_url":"https://giarrium.hatenablog.com/","provider_name":"Hatena Blog","url":"https://giarrium.hatenablog.com/entry/2021/08/05/203359","provider_url":"https://hatena.blog","height":"190","description":"\u65e5\u8a18 \u306a\u3057 \u4eca\u65e5\u66f8\u3044\u305f\u30b3\u30fc\u30c9 struct Hoge { let nonOptional: String let optional: String? } let hoge: Hoge? = Hoge(nonOptional: \"some\", optional: nil) print(type(of: hoge?.nonOptional)) // Optional<String> print(type(of: hoge?.optional)) // Optional<String> \u521d\u3081\u3066\u77e5\u3063\u305f\u3053\u3068 optional chaining\u3092\u4f7f\u3063\u3066\u30aa\u30d7\u30b7\u30e7\u30ca\u30eb\u578b\u306e\u30d7\u30ed\u30d1\u30c6\u30a3\u306b\u30a2\u30af\u30bb\u30b9\u3057\u305f\u5834\u5408\u3067\u3082\u7d50\u679c\u306e\u2026","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fgiarrium.hatenablog.com%2Fentry%2F2021%2F08%2F05%2F203359\" title=\"58\u65e5\u76ee - \u305c\u306e\u305c\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","author_name":"gurrium","version":"1.0","categories":["Swift"],"published":"2021-08-05 20:33:59","title":"58\u65e5\u76ee","image_url":null,"author_url":"https://blog.hatena.ne.jp/gurrium/"}