Scala 3, early 2020 <http://www.scala-lang.org/blo...
# random
o
a
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
Seems like they will use the union type
T | Null
a
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