{"version":"1.0","image_url":null,"published":"2021-09-27 20:50:51","blog_url":"https://giarrium.hatenablog.com/","height":"190","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fgiarrium.hatenablog.com%2Fentry%2F2021%2F09%2F27%2F205051\" title=\"104\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>","provider_url":"https://hatena.blog","author_url":"https://blog.hatena.ne.jp/gurrium/","type":"rich","categories":["Swift"],"author_name":"gurrium","description":"\u65e5\u8a18 \u4eca\u65e5\u66f8\u3044\u305f\u30b3\u30fc\u30c9 struct Hoge {} print( Hoge().self, // Hoge() type(of: Hoge()), // Hoge Hoge.self, // Hoge // type(of: Hoge), // error: Expected member name or constructor call after type name Hoge.self.self, // Hoge type(of: Hoge.self) // Hoge.Type ) \u611f\u60f3 \u308f\u304b\u3063\u305f\uff1f\u4ffa\u306f\u308f\u304b\u3089\u3093\uff0e Hoge().self\u306fHoge() Hoge()\u306fHoge\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u2026","provider_name":"Hatena Blog","blog_title":"\u305c\u306e\u305c","title":"104\u65e5\u76ee ","url":"https://giarrium.hatenablog.com/entry/2021/09/27/205051","width":"100%"}