Kotlin 1.2 ·¢²¼ÁË¡£¶àƽ̨ÏîÄ¿ÔÊÐíÄú´ÓÏàͬµÄ´úÂë¿â¹¹½¨Ó¦ÓóÌÐòµÄ¶à¸ö²ã - ºó¶Ë£¬Ç°¶ËºÍ Android Ó¦ÓóÌÐò¡£ ÕâÑùµÄÏîÄ¿°üº¬Á˶ÀÁ¢ÓÚÆ½Ì¨µÄ´úÂëµÄͨÓÃÄ£¿é£¬ÒÔ¼°Ìض¨Æ½Ì¨£¨JVM »ò JS£©µÄ´úÂëµÄÌØ¶¨Ä£¿é£¬²¢ÇÒ¿ÉÒÔʹÓÃÆ½Ì¨Ìض¨µÄ¿â¡£ Òª´ÓͨÓÃÄ£¿éÖе÷ÓÃÌØ¶¨ÓÚÆ½Ì¨µÄ´úÂ룬Äú¿ÉÒÔÖ¸¶¨Ô¤ÆÚµÄÉùÃ÷ - ËùÓÐÆ½Ì¨Ìض¨Ä£¿éÐèÒªÌṩʵ¼ÊʵÏÖµÄÉùÃ÷¡£
ÈçǰËùÊö£¬¿ª·¢ÍŶÓÒ²ÔÚÑо¿Ò»ÏµÁÐͨÓÿ⣬ÒԱ㽫¸ü¶àµÄÂß¼×ªÒÆµ½Í¨ÓôúÂëÖС£
kotlin.test, ÔÚKotlin 1.2¿ªÏä¼´Óã¬Ö»Òª±àдһ´Î²âÊÔ¾ÍÄÜÔÚ JVM ºÍ JS ÏÂÔËÐÐ;
kotlinx.html Ö§³Öͬ¹¹äÖȾ - ʹÓÃÏàͬµÄ´úÂëÔÚºó¶ËºÍǰ¶ËäÖȾ HTML;
kotlinx.serialization ÔÊÐíÄúʹÓà JSON »ò ProtoBuf ×÷ΪÐòÁл¯¸ñʽ£¬ÇáËɵؽ« Kotlin ¶ÔÏó·â×°ÔÚÓ¦ÓóÌÐòµÄ²»Í¬²ãÖ®¼ä¡£
±àÒëÐÔÄÜÌáÉý 25%¡£
ÆäËû¸Ä½ø£º
A more concise syntax for passing multiple arguments to an annotation (array literals);
Support for the lateinit modifier on top-level properties and local variables, as well as checking whether a lateinit variable is initialized;
Smarter smart casts and improved type inference in certain cases;
Compatibility of the standard library with the split package restrictions introduced in Java 9;
New kotlin.math package in the standard library;
New standard library functions for working with sequences and collections, including a set of functions for breaking a collection or sequence into potentially overlapping groups of a fixed size.
ÏÂÔØµØÖ·£ºhttps://github.com/JetBrains/kotlin/releases/download/v1.2.0/kotlin-compiler-1.2.0.zip
À´×Ô:¿ªÔ´ÖйúÉçÇø

