glideapps/quicktype

Please generate "final" Swift classes

Open

#1,241 建立於 2019年5月30日

在 GitHub 查看
 (0 留言) (0 反應) (0 負責人)TypeScript (968 fork)batch import
Swiftcustomizationgood first issue

倉庫指標

Star
 (10,867 star)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

All of the generated Swift classes should be "final class" for both performance and clarity:

https://forums.swift.org/t/how-effective-is-final-for-code-optimization/24934

It's easier to remove "final" if you should need to subclass one of the classes, than it is to add "final" to them all :-)

貢獻者指南