what is the difference between `fun <T : BaseCl...
# getting-started
n
what is the difference between
fun <T : BaseClass> doThing() : ReturnType
and
fun <T> doThing() : ReturnType where T : BaseClass
? is it just a matter of taste ?
j
AFAIK yes. where exists so you can specify more upper bounds (according to docs)
n
i guess those get interesting in the new type inference algorithm
a
I usually use 1️⃣ when its a single boundary and 2️⃣ when there are multiple boundaries