• 2.0 के बाद 8 साल में पहली बार version upgrade

  • Macro में बड़े बदलाव के साथ Metaprogramming संभव

→ Inline, compile-time के लिए package, Quoted code block, Reflection API

  • नया syntax

→ if, while, for आदि के लिए Quiet (शर्त में parentheses के बिना) syntax

new keyword को छोड़ा जा सकता है

→ Optional Braces

  • type में सुधार

→ Enums, Opaque Type Aliases

→ Intersection & Union Types

→ Dependent Function Types

→ Polymorphic Function Types

→ Type lambdas

→ Match Types

  • Object-oriented programming की फिर से कल्पना

→ functional/object-oriented दोनों दिशाओं में मजबूती

→ Traits अब class की तरह parameters ले सकते हैं

→ extension के लिए Open Class

→ Transparent Traits

export syntax का उपयोग कर Composition over Inheritance

→ NPE हटाना: Explicit Nulls, Safe Initialization

अभी कोई टिप्पणी नहीं है.

अभी कोई टिप्पणी नहीं है.