<FromGitter>
<sclee15> Can a fiber shares variables in closure?
HumanGeek has quit [Ping timeout: 276 seconds]
HumanG33k has joined #crystal-lang
<FromGitter>
<straight-shoota> @sclee15 Yes, but you need to be aware of issues when two fibers access it simultaneously (only relevant when running multithreaded). It's better to use channels to communicate state between fibers.
<hightower3>
jgillich expected. The second is not passing a hash to a function but a block
<FromGitter>
<jgillich> Ah that makes sense, thanks
<hightower3>
(i.e. it is interpreted as Class.new() { block } )
HumanG33k has quit [Ping timeout: 265 seconds]
HumanG33k has joined #crystal-lang
HumanG33k has quit [Excess Flood]
HumanG33k has joined #crystal-lang
DTZUZO has quit [Ping timeout: 250 seconds]
DTZUZO has joined #crystal-lang
<FromGitter>
<sam0x17> anyone know of a good BST implementation in crystal? and/or something I can use to actively add to and remove from a generic sorted container?
<FromGitter>
<sam0x17> has `shards run` been added yet? so sick of doing `crystal run src/*.cr` and seeing it break when there are non-trivial library dependencies