Kotlin 1.0.0 Beta 2
Pre-release
Pre-release
abreslav
released this
16 Nov 16:52
·
89682 commits
to master
since this release
What's New
- Language
- Single-instantiation inheritance for type parameters
- More precise "smart cast impossible" (the reason is given now)
- "Always null" warningadded
- Library
- Ranges
Double
andFloat
progressions are droppedByte
andShort
progressions are deprecated, the..
operator for bytes and shorts now returnsIntRange
Range<T>
renamed toClosedRange<T>
and itsend
property renamed toendInclusive
Progression<T>
is deprecated in favor of concrete progression implementations instead:IntProgression
,LongProrgession
,CharProgression
start
andend
properties in progressions are renamed tofirst
andlast
kotlin.dom
andkotlin.browser
moved out as a separate library: kotlinx.dom- Strings/CharSequences
- String utility extensions were generalized to take
CharSequence
where possible
- String utility extensions were generalized to take
- Added
- in-place reversing and sorting for
MutableList
s andArray
s naturalOrder
andreverseOrder
comparatorsmapNotNull
,mapIndexedNotNull
,filterIndexed
String.toByte()
- in-place reversing and sorting for
- Сhanged
- Explicit type parameter specification for
filterIsInstance
now is required
- Explicit type parameter specification for
- Deprecated
Function.toGenerator
toLinkedList
- Dropped
join
,merge
Delegates.lazy
FileTreeWalk.filter
,File.recurse
,BufferedReader.lines
andlineIterator
assert
,check
andrequire
with non-lazy message argument
- Ranges
- IDE
- Completion of java static members and members from objects on second
Ctrl-Space
- Intention action to import Java statics, object members or enum entries
- Intention action to import all Java static members from the given class or enum entries from the given enum class
- Completion in string templates works after
"$name."
- Debugger supports choosing where to put a breakpoint: inside or outside a single-lined lambda
- Completion of java static members and members from objects on second