Andrew Gazelka
01/08/2019, 5:42 PM.field equivalent in Kotlin for constructors? I can't seem to find one, and it is really annoying to manually create the property definition...Shawn
01/08/2019, 5:47 PM.field equivalent? What exactly are you looking for?Andrew Gazelka
01/08/2019, 5:47 PMFiles.newBufferedWriter(logFile).field in the init{} blockAndrew Gazelka
01/08/2019, 5:48 PMwriter as a val which can be accessed outside the init blockShawn
01/08/2019, 5:50 PMShawn
01/08/2019, 5:56 PMval writer = {the code you were going to write out} after the init blockAndrew Gazelka
01/08/2019, 5:57 PMAndrew Gazelka
01/08/2019, 5:57 PMinit{}Andrew Gazelka
01/08/2019, 5:57 PMval or something