glideapps/quicktype

Please generate "final" Swift classes

Open

#1241 opened on May 30, 2019

View on GitHub
 (0 comments) (0 reactions) (0 assignees)TypeScript (10,867 stars) (968 forks)batch import
Swiftcustomizationgood first issue

Description

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 :-)

Contributor guide