TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Show HN: Turn Your APIs into Swift Protocols

2 点作者 joshuawright11将近 2 年前
Hey HN!<p>If you&#x27;re a fan of Swift you may have noticed that with WWDC 2023 came the (beta) release of macros. They&#x27;re super powerful and expressive!<p>I&#x27;ve been wishing Swift had a [Retrofit](<a href="https:&#x2F;&#x2F;square.github.io&#x2F;retrofit&#x2F;" rel="nofollow noreferrer">https:&#x2F;&#x2F;square.github.io&#x2F;retrofit&#x2F;</a>) style API definition library for years, and with macros it seemed like this was now possible.<p>I&#x27;d like to show you all Papyrus, a library that turns your APIs into type-safe Swift protocols.<p>Would love to get your feedback.<p><a href="https:&#x2F;&#x2F;github.com&#x2F;joshuawright11&#x2F;papyrus">https:&#x2F;&#x2F;github.com&#x2F;joshuawright11&#x2F;papyrus</a>

暂无评论

暂无评论