The issue about malformed messages bricking iPhones reminds me of the debates about whether Rust should support catching panics. This is why you need to be able to catch panics. :)
-
-
Replying to @pcwalton
...maybe? I mean, if this is about malformed input data, theoretically your parser should detect that and do something about it. If the data is malformed in a way you don't expect, crashing may be the best option.
2 replies 0 retweets 1 like -
Replying to @waddlesplash
The problem is that what it crashes is SpringBoard. i.e. the home screen. This bricks the phone.
1 reply 0 retweets 0 likes -
Replying to @pcwalton
Then this is a good argument for not processing messages received from remote sources in a system critical process :)
1 reply 0 retweets 4 likes -
Replying to @waddlesplash
I mean…what else are you going to do? Users want to read SMS on the home screen.
1 reply 0 retweets 1 like -
Replying to @pcwalton
Write a stricter and less free form format for home screen SMS and parse the underlying format into that in a separate process, same as on macOS?
1 reply 0 retweets 14 likes -
Replying to @waddlesplash @pcwalton
The ticket even notes that on macOS it just crashes a daemon instead of the entire UI
1 reply 0 retweets 6 likes
Oh, that’s interesting.
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.