ChanServ changed the topic of #crystal-lang to: The Crystal programming language | https://crystal-lang.org | Fund Crystal's development: https://crystal-lang.org/sponsors | GH: https://github.com/crystal-lang/crystal | Docs: https://crystal-lang.org/docs | Gitter: https://gitter.im/crystal-lang/crystal
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
<raz> it*
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?
<FromGitter> <Blacksmoke16> https://www.baeldung.com/java-try-with-resources, seems to just be something built into `try` statements under specific conditions
<FromGitter> <Blacksmoke16> which would be like ⏎ ⏎ `````` [https://gitter.im/crystal-lang/crystal?at=613e3d6ad206b85e4f94a93e]
<FromGitter> <Blacksmoke16> ```begin some_obj = ... ⏎ # ... ⏎ end``` [https://gitter.im/crystal-lang/crystal?at=613e3d78f428f97a9f8123b7]
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]