How can several related types share an init(…) method without making constant members var?

后端 未结 0 1939
小鲜肉
小鲜肉 2020-11-21 18:12

I find myself very often forced to use var members in Swift even when members will only be assigned once.

Here\'s an example: The only way I have fou

相关标签:
回答
  • 消灭零回复
提交回复
热议问题