<@U3E25GSEP> commented on <@U3E25GSEP>’s file <htt...
# getting-started
u
@robin commented on @robin’s file https://kotlinlang.slack.com/files/U3E25GSEP/F4A560U65/totally_overkill_version_for_arbitrary_numbers_of_closeables_.kt: What's the problem with this code?
Copy code
val c1 = File("A").bufferedWriter()
[etc]
listOf(c1, c2, c3, c4).use {
    c1.write("Hi")
    c2.write("Hi")
    c3.write("Hi")
    c4.write("Hi")
}