Re:Apple’s Use of Swift in iOS 13
by mantap on Thursday September 26, 2019 @07:30PM
(#21086792)
Yeah there are still many flaws in typescript's null checking, even in quite pedestrian code. The ! operator isn't evil, far from it, it exists so that the compiler can be more aggressive at checking nulls knowing that programmers can always override if it makes a mistake. I would never rewrite my code to avoid ! per se, I write it to be most readable to humans, if that doesn't please the compiler then so be it.
[ Parent
| on HN ]
There are no comments on this comment yet.