3 ms·
Swift originally had untyped throws for the sole reason that typed throws in Java didn't work well and made it too hard to write libraries. Swift is getting ty
by astrange 2y ago
Swift originally had untyped throws for the sole reason that typed throws in Java didn't work well and made it too hard to write libraries.
Swift is getting typed throws now because the untyped ones require memory allocation, and so aren't suitable for embedded programming.