Post

Now that CiderKit.Macros is published, and has seen several revisions, it is time for me to put together a post-mortem of the experience of writing #Swift macros. Very interesting and powerful once it clicks, but it has a very steep curve at the start. chsxf.dev/2026/09/14/1...

chsxf.devWriting Swift MacrosHaving the ability to generate code when needed by manipulating attribute-like elements in your code is almost too good to be true. However, as you’ll see in this post, Swift macros are not all sunshi...

Over the week-end, I've been experimenting with #Swift macros. I have to admit it has been the most frustrating journey I've had in a long time. And the lack of proper documentation and debugging capabilities isn't helping. But, still, I managed to write my first macro: github.com/chsxf/CiderK...

0 reposts1 like

No replies yet.