https://kotlinlang.org logo
#random
Title
# random
o

orangy

04/20/2018, 1:09 PM
a

andyb

04/20/2018, 1:39 PM
Scala 3 Features : http://dotty.epfl.ch/docs/reference/overview.html Like the look of the Intersection and Union Types. Introduction of
enums
& new syntax for lambda types which looks pretty familiar. Extension Clauses seem to be a form of Mixin or Delegation but not sure. They are introducing null safety. Wonder what symbol they will use to indicate that a value may allow nulls.
m

marstran

04/20/2018, 1:41 PM
Seems like they will use the union type
T | Null
a

andyb

04/20/2018, 1:43 PM
Ok, that makes sense but does that mean you will still need to add explicit
is Null
checks throughout the code or will the methods be applied via
flatMap
if the item is nullable?
The list of features that are being dropped from the language for v3.0 is also interesting (think most/all of these were marked as experimental in v2.12)
Copy code
Dropped Features
    DelayedInit
    Macros
    Existential Types
    Type Projection
    Procedure Syntax
    Early Initializers
    Class Shadowing
    Limit 22
    XML literals
    Auto-Application
    Weak Conformance