Sourcery: Template-Based Code Generation for Swift
Swift is a beautiful language that powers a lot of great iOS apps. Unfortunately it features very limited runtime and no meta-programming features. This has led our projects to contain a lot of duplicated code patterns, they can be considered the same code, just with minimal variations.
[…]
Insanity is a tool that scans your source code, applies your personal templates and generates Swift code for you, allowing you to use meta-programming techniques to save time and decrease potential mistakes.
Codegen is gonna become a crucial part of Swift development in not very long.
Update (2016-12-12): Martin Pilkington:
I can’t help but feel that code generation is a code smell. Shows a language/API weakness.
Update (2016-12-13): Krzysztof Zabłocki:
Insanity has been renamed to Sourcery, and we just released 0.3.0 version, old links / remotes should work fine.
2 Comments RSS · Twitter
[…] we’re talking about today is what you might have noticed when it was named Insanity, but these days is called […]