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
ur5us has joined #crystal-lang
<FromGitter> <stellarpower> Is there any documentation on select? The code I have pasted in doesn't work, the guide I was following seemed to be using it like a case statement
<FromGitter> <stellarpower> That's what I was following.
<FromGitter> <stellarpower> It isn't happy with my brace alignment etc. Unexpected keyword case, unexpected end
<FromGitter> <Blacksmoke16> got an example?
<FromGitter> <stellarpower> Has it been updated since then?
<FromGitter> <stellarpower> Not easily, as it's in an existing body of code.
<FromGitter> <Blacksmoke16> select hasnt changed then
<FromGitter> <Blacksmoke16> it works *like* `case` but its not
<FromGitter> <Blacksmoke16> well i guess you can think of it like `case` but on channels
<FromGitter> <stellarpower> Oh wait so `when` doesn't need a corresponding end?
<FromGitter> <Blacksmoke16> no
<FromGitter> <stellarpower> Thanks! Looks like that's done it.
ur5us has quit [Ping timeout: 246 seconds]
sagax has joined #crystal-lang
hightower2 has joined #crystal-lang
hightower3 has quit [Ping timeout: 244 seconds]
notzmv has quit [Ping timeout: 260 seconds]
ur5us has joined #crystal-lang
<FromGitter> <PricelessRabbit> i'm also using select and found difficult to get a decent documentation (the ilbarasti post and go background saved my life). are you accepting PR's to update crystal doc and document the select statement (for example it is not clear if it works also with channel send, to send in non-blocking way like go)
jmdaemon has quit [Ping timeout: 268 seconds]
ur5us has quit [Ping timeout: 244 seconds]
ur5us has joined #crystal-lang
hightower2 has quit [Ping timeout: 246 seconds]
ur5us has quit [Remote host closed the connection]
ur5us has joined #crystal-lang
ur5us has quit [Ping timeout: 244 seconds]
hightower2 has joined #crystal-lang
Sankalp has quit [Ping timeout: 252 seconds]
Sankalp has joined #crystal-lang
notzmv has joined #crystal-lang
jmdaemon has joined #crystal-lang
_ht has joined #crystal-lang
<FromGitter> <oprypin:matrix.org> op finally there's someone else doing the same thing ⏎ https://kaleidawave.github.io/posts/introducing-ezno/#making-all-function-parameters-generic%2Fdependent%3A
_ht has quit [Remote host closed the connection]
SamantazFox has quit [Remote host closed the connection]
SamantazFox has joined #crystal-lang
dostoyevsky2 has quit [Quit: leaving]
dostoyevsky2 has joined #crystal-lang
hightower3 has joined #crystal-lang
hightower2 has quit [Ping timeout: 246 seconds]
ober has joined #crystal-lang
<ober> added require gzip to my simple app, but can't seem to figure out how to install it. `shards install gzip` is a noop. can't find a version on shards.info to include in the shard.yml.
<FromGitter> <ober> What is the missing step here? ^^
<FromGitter> <ober> guessing distro specific package. removing and building from source.
<FromGitter> <ober> user error. Compress::Gzip and require 'compress/gzip'
ur5us has joined #crystal-lang