4 ms·
Anecdote posted as-is: I recently started a macOS app project to learn Swift and SwiftUI. A week or two into the project, I managed to hit an honest-to-god com
by brundolf 3y ago
Anecdote posted as-is:
I recently started a macOS app project to learn Swift and SwiftUI. A week or two into the project, I managed to hit an honest-to-god compiler bug. A particular combination of syntaxes would reliably cause the compiler to crash (not yield a compile error; crash). I tried restarting XCode, restarting my computer, updating everything. Whenever I brought that syntax into the editor, XCode's Swift compiler integration would crash.
It wasn't anything exotic; I was making a straightforward app, and wasn't trying any Swift language funny-business (I didn't know the language well enough to even try)
It was bizarre to so easily find a bug in the headlining compiler made by the world's most valuable company; I can only think it's the result of this being a language that (effectively) only targets one company's systems, and the effect that has on the size and involvement of the community
- napierzaza 3y ago[dead]
- jb1991 3y agoI think many of us will be really interested to know exactly what syntax you found the crashes it.
- brundolf 3y agoUnfortunately it was several weeks ago and I don't remember or have the code on hand. I think it involved a switch statement in some way
- jitl 3y agoI've also hit these kinds of issues with Swift/SwiftUI. It's always surprising for a production compiler to die and throw up it's hands and say "you hit a compiler bug!"