Re:Embedded Swift on the Raspberry Pi Pico
by saagarjha on Wednesday March 06, 2024 @12:43PM
(#39618540)
It’s not a new idea, but I don’t think it’s a good idea. That’s just it. Swift has a construct to do the equivalent and it’s fewer characters to boot when compared to Dart when you’re going from an optional to non-optional type.
Type narrowing is not a new idea