Reasons why you should use swift coding : 1. Swift is easier to read 2. Swift is easier to maintain 3. Swift is safer 4. Swift is unified with memory management 5. Swift requires less code 6. Swift is faster 7. Fewer name collisions with open source projects 8. Swift supports dynamic libraries 9. Swift Playgrounds encourages interactive coding 10. Swift is a future you can influenceview more
Swift is apple’s new open source programming language, that was introduced at Apple’s 2014 Worldwide Developers Conference (WWDC), it’s used to develop for iOS, macOS, watchOS, tvOS, and Linux, Swift is designed to work with Apple’s Cocoa and Cocoa Touch frameworks and the large body of Objective-C code written mainly for Apple products.
The main focus with swift is to be concise and less prone to error (safer) than Objective-C, the man behind swift is Chris Lattner, who worked at Apple Inc. as Director of the Developer Tools department, leading the Xcode, Instruments, and compiler teams, and the main author of LLVM (low level virtual machine), and CLang (replaces the full GNU Compiler Collection and intended to work atop LLVM).
Swift is a (1) general-purpose, (2) multi-paradigm, (3) compiled programming language
general purpose : A general-purpose language is a computer language that is broadly applicable across application domains, and lacks specialised features for a particular domain. This is in contrast to a domain-specific language which is specialised to a particular application domain. The line is not always sharp, as a language may have specialised features for a particular domain but be applicable more broadly.
A domain specific language is a language that’s written to deal with a specific domain or set of concerns. There are a lot of them around, like make, ant, and rake for describing software builds, or lexx and yacc for language construction. In recent years, they’ve become popular as some things have combined to make them easier to build. Big among those things has been the increasing popularity of Ruby, which has several features that make it easy to build new DSLs, it’s hard to find much information about how to work with them. DSLs are small languages, focused on a particular aspect of a software system. You can’t build a whole program with a DSL, but you often use multiple DSLs in a system mainly written in a general purpose language.
multiparadigm : The design goal of such languages is to allow programmers to use the most suitable programming style and associated language constructs for a given job, considering that no single paradigm solves all problems in the easiest or most efficient way.
Language paradigms are a lot like musical genres. They’re messy things and we can argue about where to draw the lines