Avatar
Kishikawa Katsumi 12/26/2022 8:38 AM
そうですねえ。Javaや.NETにある類似のライブラリを作ってみるとわかるかな。明らかにそれに影響された機能のようだし。
8:40 AM
https://forums.swift.org/t/pitch-reflection/61438/36 こっちの方はもともとプライベートに使われてたものをAPIとして整理するっていう前提が示されているからかほぼ+1の意見だけどAPIの設計はもっと練ったほうがいいって感じか。
I'm really excited about more introspection capabilities in the language, but after reading the proposal, I think it's missing an important feature, and I don't quite understand another. What I really want to do is be able to find all types in a module (or linked into the app) that conform to a given protocol, and then instantiate instances of ...