groostav
10/06/2021, 7:22 PMval dc = when(sealedTypeInstance) {...}
, where 'dc' is 'dont care', but not everyone at my company would know that and might wonder why there is an unused variable and remove it.
Lately I've been writing when(sealedTypeInstance) { ... } as Any?
which is a little nicer since its on the tail, and is cryptic enough to not have a junior remove it, but still isnt great.
What do you guys do? Does a kotlin style guide have a suggestion for me?ephemient
10/06/2021, 7:41 PMephemient
10/06/2021, 7:43 PMJacob
10/07/2021, 3:42 AMpdvrieze
10/12/2021, 2:57 PM