glideapps/quicktype

Please generate "final" Swift classes

已關閉

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

 (0 則留言) (0 個反應) (0 位負責人)TypeScript (968 個分叉)batch import
Swiftcustomizationgood first issue

倉庫指標

星標
 (10,867 顆星)
PR 合併指標
 (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 :-)

貢獻者指南