https://kotlinlang.org logo
e

elect

12/17/2017, 6:55 PM
is there already an issue about having a
return
inside a constructor? Because right now I'm forced to use multiple
if-else
with the consequent indentations
r

rrader

12/18/2017, 12:46 PM
refactor your constructor to some small private methods
e

elect

12/18/2017, 2:58 PM
I wouldn't like to go down this road, because since it's a port, I'd like to stick as much as possible to the original version to keep maintenance as low as possible
k

kingsley

12/18/2017, 3:36 PM
Just use a secondary constructor instead. Or a factory method.
e

elect

12/18/2017, 3:40 PM
uhm, I'll see
2 Views