Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

>I also tend to rewrite the code completion implicit unwraps (!) with explicit ones (?). Forces me to acknowledge that I'm skating on thin ice.

Hold on. Do you prefer your code failing silently instead of crashing?



Nope.

I can't use the properties without explicitly unwrapping them. Implicit means that I can pretend they aren't optional.

But I often have lines that use ?? to bring in alternatives, and will, if the occasion calls for it, allow the app to fail silently. I tend to like using things like assertions and preconditions, if I want to make the app crash.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: