Hacker News new | past | comments | ask | show | jobs | submit login

In what ways is objC difficult to maintain, and in what ways is Swift easier to maintain than objC?

I look forward to the magical bug free future when I switch to Swift.




If you actually believe I offered you a magical bug free future, can you at least pay me for it?

Swift is far more readable and a bit more concise than objective c, that makes it more maintainable. The bigger win is of course optionals, which, (if you embrace them properly), can mean your app will never have a dangling pointer or runtime crash from a nil pointer.

I spent nearly 20 years writing object oriented C and Objective C apps for personal computers and phones, and dangling pointer crashes were the biggest possible sinkhole of time, and worse degradation of product quality.

I can't imagine ever going back to objective c.


Language features to eliminate sources of bugs I can get behind.




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

Search: