/explore
|
You are here |
swift.org | ||
| | | | |
blog.kulman.sk
How many times how you copied and pasted some code in your current codebase because there was no good way to abstract it? Maybe because it was some repeating code required by a framework or mapping of some data transfer structures. Writing such boilerplate code is an error-prone waste of time, especially when there is a much better way: generating that code. There are a few tools to help you do that, one of the most flexible of them being GYB. What is GYB? GYB is a lightweight templating system that allows you to use Python to generate text files. Those text files can be Swift source code files or anything else you need. GYB is used in the Swift standard library codebase so it works well for generating Swift source code and it is a proven technology that wor... |
|
| | | | | ||
| | | | |
www.avanderlee.com
Macros in Swift allow you to extend the compiler with custom build errors and code generation to eliminate extraneous boilerplate code. |
|
| | | | | ||
| | | | |
haim.dev
A guide to statically linking Swift library into a Rust application. |
|
| | | | | ||
| | | | |
yotam.net
A blog about free software and programming |
|
| | | |||