NoMethodError (undefined method `hello' for nil:NilClass) I've also written some Ruby background stuff on the side, and I hate the ruby runtime. Swift's compilation detection is very powerful, which is one of the advantages of being a pure compiled language. The purpose of this feature is to allow the compiler to detect nil exceptions at compile time, so that the developer can deal with them ahead of time, so that the code with the problem doesn't send it to the line. After using it for a while, it really smells good. People who started with Swift might be right? And! The operation is confused, and even uncomfortable. This post is for those of you who use Objective-C to seriously consider Swift. So far, Swift has been so ubiquitous that the team has barely written Objective-C. I've been using Swift since version 1.0, and although I've interspersed it with objective-C projects, I'm generally pretty comfortable with it. By now, its syntax is stable and iOS developers can rest assured to use it.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |