Comment Comment by nielsbot I don't think it's horrible, but I really do wish they would copy TypeScript here.Let me do this: const x: String | Int Instead of enum MyEnum { case string(String) case int(Int) } There's an existing proposal for this here:https://forums.swift.org/t/re-proposal-type-only-unions/7270... parent nielsbot 9 months ago
Let me do this:
Instead of There's an existing proposal for this here:https://forums.swift.org/t/re-proposal-type-only-unions/7270...