Hi, why not add an `asUnit()` method in the <#C0B8...
# language-proposals
l
Hi, why not add an
asUnit()
method in the #stdlib so you can do things like
override someMethodReturningJavaVoidOrUnit() = launch { ... }.asUnit()
?
d
Why not
.let { Unit }
?
👌 1
1
l
That's right, a bit less naturally readable but a great solution
i
or even just
.let {}
l
@ilya.gorbunov That's right for
.let {}
, but I think an
asUnit()
method would be more explicit on the intent. Any opinions on whether it is a good idea to add it to stdlib?
i