🎉 I'm eager to announce we've released Hummingbird 2!
This brand new Swift Web Framework has been designed for Swift 6 and structured concurrency.
It's packed full of major improvements, making Swift on the Server better than ever before!
@Jeehut I like to use it for switch statements in particular. With if statements one could use a ternary operator but I think variable assignment with a switch statement works very nicely.
I do like the conciseness of your proposed “do let…” syntax but I’m also empathetic to those who want to keep the surface area of the language in check.
For me personally, “do let… catch” seems analogous enough to “guard let… else” that it feels fairly intuitive already.
@Jeehut I think you can assign a “do…catch {}” expression to a variable just like you can an if or switch statement. That also reduces lines of code and avoids having to set uninitialized variables.
Maybe slightly more verbose than your method but probably more versatile.
🎉 I'm eager to announce we've released Hummingbird 2!
This brand new Swift Web Framework has been designed for Swift 6 and structured concurrency.
It's packed full of major improvements, making Swift on the Server better than ever before!
We are going to take a Swift feature into the browser. We will set up a WebAssembly application from scratch, show how to run and debug it, and even set up some basic UI. And then we will integrate our existing model into it, all powered by the magic of Swift’s Observation framework.
✨New blog post!
I recently played around with creating a custom SF symbol and couldn't find a good easy to read resource on how to get started.
So I decided to write a new article on the topic based on my experience.
https://www.danijelavrzan.com/posts/2024/06/create-custom-sf-symbols
Symbols (or icons) are an essential part of any app. Luckily, when developing for Apple platforms, we have the amazing collection of SF symbols at our disposal. But even with over 6000 symbols already available, sometimes the one you need doesn't exist yet. We'll go over how to create a custom symbol in Sketch.
The June episode of Swift News is out now!
Installed Swift on my RaspberryPi server. Seems to work, even though it’s still v5.