Dave Leeds
04/19/2018, 3:14 AMtypealias
is used. I've found that it's most frequently used to map some common classes (e.g., exceptions, StringBuilder
, ArrayList
, Serializable
) to the corresponding Java classes. I was curious if @ilya.gorbunov or someone else at JB can fill me in on the purpose of these particular aliases in the standard library. Are they intended to save on imports (e.g., no need to import java.util.*
if ArrayList
is found in kotlin.collections
)? Or to give Kotlin the flexibility to expand on the interface of those classes in the future? Or something else? Thanks!gildor
04/19/2018, 3:15 AMStringBuilder
, ArrayList
, but not Serializable)Dave Leeds
04/19/2018, 3:19 AMgildor
04/19/2018, 3:21 AMDave Leeds
04/19/2018, 3:22 AMgildor
04/19/2018, 3:22 AM