![]() ![]() This is often called optional types in other languages that offer similar null safety features like Swift or JavaScript. Kotlin introduces nullable types by giving developers the ability to designate variables as potentially containing ‘null’ as their values. This isn’t ideal because the null checking is prone to human error, and it makes code look unnecessarily cluttered with additional levels of indentation. or NPE for short - has long been a source of headache for Java programmers, and a lot of Java code are littered with null checks to ensure something isn’t null before they’re interacted with. ![]() Given all these developments and Kotlin’s surge in popularity, we thought we’d share a few features we love about our Android programming language of choice. ![]() In 2019, Google then announced that Android development will increasingly be Kotlin-first. Thankfully, the Android Studio 3.0 release in 2017 saw Kotlin introduced as an alternative programming language to Java for Android development. When Swift was released by Apple for iOS developers, Android developers were in awe and envious of this modern programming language that provides null-safety and an expressive yet concise syntax. ![]()
0 Comments
Leave a Reply. |