Tootfinder

Opt-in global Mastodon full text search. Join the index!

@sean@scoat.es
2025-05-29 16:09:40

Server-Side #Swift folks (who use Hummingbird, especially):
We (w/ @… ) rolled HummingbirdMacroRouting 0.2 last night.
This is an alternate way to declare controllers and routes in Hummingbird, via macros, and it's what we're using for Studioworks.
Pretty happy…

@sean@scoat.es
2025-05-28 15:20:21

Unlocking my own understanding of and ability to build #Swift macros feels like a superpower.
…something something great responsibility, though.
Synthesizing boilerplate and statically-verifiable elements like custom function calls based on macro input… is magic—the good kind.
`@GET("/logs/{userId}/{timing}")`
↘️

Screen recording of my IDE completing `ApiController.$Routing.logs.resolvedPath` based on the above declaration.
@mikeymikey@hachyderm.io
2025-04-28 20:02:39

Excellent writeup from Bryson
#swift #swiftlang #macos #macadmins

@khalidabuhakmeh@mastodon.social
2025-06-04 19:50:47

Anyone out here building web applications with #swift and #vapor?

@sean@scoat.es
2025-05-19 20:12:18

Whoever made reserved keywords escapable in #Swift: I owe you a drink of your choice if we're ever at the same table.
```swift
// …
case hu = "Hungary"
case `is` = "Iceland"
case `in` = "India"
case id = "Indonesia"
// …
```
This would have been a complete disaster of an API otherwise.