Kotlin, a new Android platform first-level development language

Source: Internet
Author: User

Recently saw a science and technology news, the general content is Google will kotlin language as the first language of Android application development, and Java, this is a big event in the development community big news, even Google's pro-son go language does not have this treatment, And Kotlin seemingly unknown, before even heard before. This gives me a great curiosity about Kotlin, what is the sacred language that makes Google such a favor?

After searching the related resources on the net, I have a rough understanding of Kotlin. Kotlin is a JVM platform language, and the Kotlin compiler converts Kotlin code into a JVM character code, so it is essentially the same as Java and can be run on a Java virtual machine.

Kotlin was very young, and the first version was released in 2011.

Kotlin is the language developed by JetBrains Company, JB Company famous World, the production of the IDE, and the universe is the first Visual Studio also no positive conflict, so unless it is a. NET programmer, otherwise not unfamiliar to this company.

Kotlin has a very lovely feature, that is, with Java equals, the code in both languages can be mixed and used in a project. In my previous cognition, the development Program code is mixed, the. NET platform should be in a leading position in this respect, we can write a module in F #, compile it into a. dll component, and then call it in a C # project, which is a form of code mixed, but not in a project to write C # The code also writes VB or F # code. and Kotlin and Java do not have this limitation, as long as it is not naïve to understand the mix as the Kotlin code and Java code can be mixed in a file, then no matter how you toss no problem. You can write a class in Java, let Kotlin inherit, you can write a function with Kotlin, let Java call, anyway the interaction of these two kinds of code is completely seamless.

I have a general view of the grammar through the network information, interested students can also see

Https://github.com/huanglizhuo/kotlin-in-chinese

After a preliminary understanding, you can be sure that Kotlin's syntax is very stunning, and Java is completely two extreme. I believe that as long as it is not from the 1995 to cross over the programmer, will certainly feel that Java is not beautiful now. Others C # Originally also and Java a pair of virtues, but others beg ah, each version is added a variety of advanced grammatical characteristics in line with the trend of the Times, now C # 7.0 all kinds of good, although the C # is to imitate Java growth, 've seen also in the sense, but from now on the gap between the two, This is a bit too blue for Nemo.

To take martial arts martial art to make a metaphor, Java is like the Shaolin Temple monks practicing stunt, powerful enough, good practice can in the martial arts Yang Naili Wanxiong bully side, but martial arts tricks is too unpretentious, so that will be scrupulous, a little chic and elegant to seize the eyeball of the feeling also did not. And like C #, F #, Haskell, Scala and other languages like the Dragon 18 Palm, six-pulse sword, Lingbo micro-step, the north of the magic, so that will come out is often swing the palm of the mountain, finger laser, not only the power of strange, and the unexpected, with the Shaolin Temple those stunts, do not know where to go. Obviously, Kotlin also belongs to the latter.

Kotlin has almost all of the syntactic features that C # has and Java does not have, and may be better in some ways. Kotlin has a lot of FP features, but it's not as complex as Scala, and compiles much faster than in Java, so you can learn the advantages of Java and Scala, but discard their drawbacks.

Advanced grammar This thing, the nature of the program run without any impact, but for the quality of Code and development efficiency has a long-term impact, so kotlin this language has a very good reason to use, especially in the lap of Google's thigh, the prospect is more magnificent.

Therefore, Kotlin, waiting for the developers of the pro-lucky bar ...

Kotlin, a new Android platform first-level development language

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.