<@U4UGS5FC7> Type ascription was removed not long ...
# language-proposals
i
@raulraja Type ascription was removed not long before Kotlin 1.0 presumably to free that syntax for map literals 😉
😮 1
b
Perhaps we could bring it back with
as
, like it seems Swift does
a
IMO no, then you have some
as
that cast values and some
as
that doesn't cast, but instead tells the compiler what type it is
b
IMO the current
as
should be
as!!
, since it’s not conditional. Then
as
should be type hinting for safe casting, and
as?
should remain as-is