hightower2 has joined #crystal-lang
hightower2 has quit [Ping timeout: 260 seconds]
hightower2 has joined #crystal-lang
sevvie has quit [Remote host closed the connection]
<
FromGitter>
<Blacksmoke16> TIL java has a concept of `AutoCloseable` types, pretty slick
<
FromGitter>
<Blacksmoke16> guess the crystal equivalent would be a block that closes the instance for you
<
raz>
yup, try-with-resources looks kinda useful for better exception control
<
FromGitter>
<Blacksmoke16> super useful, dont need to worry about the `finally { object.close(); }`
<
raz>
yup, but still have to remember to actually use id
hightower2 has quit [Ping timeout: 245 seconds]
<
yxhuvud>
seems annoying to have to rely on finalizers being run in a timely manner though
<
yxhuvud>
or do they avoid that somehow?
lanodan has quit [Quit: WeeChat 3.1]
jhass has quit [Quit: Bye]
jhass has joined #crystal-lang
DeBot has quit [Ping timeout: 260 seconds]
lanodan has joined #crystal-lang
Guest45 has joined #crystal-lang
Guest45 has quit [Client Quit]
lanodan has quit [Quit: WeeChat 3.1]
lanodan has joined #crystal-lang
ur5us has joined #crystal-lang
hightower2 has joined #crystal-lang
ur5us has quit [Ping timeout: 245 seconds]
ur5us has joined #crystal-lang
hightower2 has quit [Ping timeout: 265 seconds]