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
<FromGitter> <oprypin:matrix.org> bastienleonard, ('0'.ord + n).chr
xybre1 has quit [Quit: WeeChat 1.9.1]
<bastienleonard> thanks!
brw has quit [Quit: The Lounge - https://thelounge.chat]
brw has joined #crystal-lang
hightower3 has joined #crystal-lang
hightower2 has quit [Ping timeout: 260 seconds]
ur5us_ has quit [Ping timeout: 260 seconds]
jhass has quit [Ping timeout: 252 seconds]
straight-shoota has quit [Ping timeout: 252 seconds]
straight-shoota has joined #crystal-lang
jhass has joined #crystal-lang
Sankalp has quit [Ping timeout: 260 seconds]
Sankalp has joined #crystal-lang
_ht has joined #crystal-lang
ur5us_ has joined #crystal-lang
ober has quit [*.net *.split]
oz has quit [*.net *.split]
ober has joined #crystal-lang
ur5us_ has quit [Ping timeout: 248 seconds]
jmdaemon has quit [Ping timeout: 268 seconds]
SamantazFox has quit [Killed (NickServ (GHOST command used by SamantazFox_))]
SamantazFox_ has joined #crystal-lang
dmgk_ has joined #crystal-lang
fifr_ has joined #crystal-lang
human_g33k has joined #crystal-lang
egality has joined #crystal-lang
greenbigfrog has quit [*.net *.split]
fifr- has quit [*.net *.split]
HumanG33k has quit [*.net *.split]
egality_ has quit [*.net *.split]
dmgk has quit [*.net *.split]
ngp has quit [*.net *.split]
dmgk_ is now known as dmgk
greenbigfrog has joined #crystal-lang
quazimodo has quit [Ping timeout: 248 seconds]
<FromGitter> <Blacksmoke16> think you could just do `n.chr`
<FromGitter> <Blacksmoke16> https://crystal-lang.org/api/Int.html#chr%3AChar-instance-method
hightower3 has quit [Ping timeout: 260 seconds]
hightower2 has joined #crystal-lang
ox has joined #crystal-lang
ox is now known as oz
zkv has joined #crystal-lang
<zkv> Hi *
<FromGitter> <Blacksmoke16> o/
<FromGitter> <moe:busyloop.net> \o
SamantazFox_ is now known as SamantazFox
jmdaemon has joined #crystal-lang
ur5us_ has joined #crystal-lang
_ht has quit [Remote host closed the connection]
bastienleonard has quit [Quit: WeeChat 3.8]
bastienleonard has joined #crystal-lang
<bastienleonard> Blacksmoke16: I don't think that would work: 1.chr => '\u0001'
<bastienleonard> need to add '0'.ord as show above
quazimodo has joined #crystal-lang
<zkv> Is it some good book about Crystal language which is really good from the community point of view? Or the offical docs are more than enough? Thank you.
sagax has joined #crystal-lang
<mps> I don't like to give advises but found this quite fine
<mps> also I bought https://pragprog.com/titles/crystal/programming-crystal/ about 2 or 3 years ago, helped me to better understand some things
<mps> but again, I don't like to say they are good or bad, depends on the reader
<bastienleonard> I found the project's "specification" to be more than enough: https://crystal-lang.org/reference/syntax_and_semantics
<bastienleonard> your mileage may vary, for example if you have no experience with Ruby
<bastienleonard> how does Tuple make "unpacking" work when the tuple elements have different types? The [] operator would naturally return a union of the element types instead of the type you want
<bastienleonard> not sure that's clear
<bastienleonard> I can give a concrete example if needed