Avatar
Kishikawa Katsumi 6/10/2021 12:58 PM
On performance. I have a 4500-lines enum for emojis in Unicode, so I can order them and move them around. In the functions I declared (such as one providing the group, or subgroup), I'm damned either way: if I don't put a default: fatalError() at then end of it, I have a compiler too slow error. If I put it, I have a Default will never be executed. Best of all, I cannot disable the warning in the package, so I'm left with 4 warnings at all times. Anything I can do?
Dev Loungeから。 やっぱりそれくらいメンバの多いEnumとかStructを使うケースってあるんだなあと興味深い。