22 ms·
Ironically, "easy to miss" is my objection about Rust's "?" suffix
by Andys 5y ago
Ironically, "easy to miss" is my objection about Rust's "?" suffix
- janekm 5y agoIt's a fair point (and the same objection could be made to Swift's ! and ?). Over time I have given up my objections to verboseness... Clarity of code is far more important than conciseness. I do see the point for some syntactic sugar for error handling though, long if chains are terrible for clarity as well. And arguably ? and ! are typographic symbols our brains are well trained to spot.