00:25
<
FromGitter >
<oprypin:matrix.org> bastienleonard, ('0'.ord + n).chr
00:39
xybre1 has quit [Quit: WeeChat 1.9.1]
00:39
<
bastienleonard >
thanks!
02:29
brw has joined #crystal-lang
03:00
hightower3 has joined #crystal-lang
03:03
hightower2 has quit [Ping timeout: 260 seconds]
04:21
ur5us_ has quit [Ping timeout: 260 seconds]
04:26
jhass has quit [Ping timeout: 252 seconds]
04:26
straight-shoota has quit [Ping timeout: 252 seconds]
04:28
straight-shoota has joined #crystal-lang
04:28
jhass has joined #crystal-lang
06:14
Sankalp has quit [Ping timeout: 260 seconds]
06:14
Sankalp has joined #crystal-lang
08:11
_ht has joined #crystal-lang
08:16
ur5us_ has joined #crystal-lang
09:01
ober has quit [*.net *.split]
09:01
oz has quit [*.net *.split]
09:11
ober has joined #crystal-lang
09:19
ur5us_ has quit [Ping timeout: 248 seconds]
11:17
jmdaemon has quit [Ping timeout: 268 seconds]
11:27
SamantazFox has quit [Killed (NickServ (GHOST command used by SamantazFox_))]
11:27
SamantazFox_ has joined #crystal-lang
11:29
dmgk_ has joined #crystal-lang
11:29
fifr_ has joined #crystal-lang
11:32
human_g33k has joined #crystal-lang
11:34
egality has joined #crystal-lang
11:36
greenbigfrog has quit [*.net *.split]
11:36
fifr- has quit [*.net *.split]
11:36
HumanG33k has quit [*.net *.split]
11:36
egality_ has quit [*.net *.split]
11:36
dmgk has quit [*.net *.split]
11:36
ngp has quit [*.net *.split]
11:36
dmgk_ is now known as dmgk
11:42
greenbigfrog has joined #crystal-lang
12:01
quazimodo has quit [Ping timeout: 248 seconds]
14:09
<
FromGitter >
<Blacksmoke16> think you could just do `n.chr`
14:14
hightower3 has quit [Ping timeout: 260 seconds]
14:47
hightower2 has joined #crystal-lang
16:09
ox has joined #crystal-lang
16:15
ox is now known as oz
18:19
zkv has joined #crystal-lang
18:19
<
FromGitter >
<Blacksmoke16> o/
18:20
<
FromGitter >
<moe:busyloop.net> \o
18:37
SamantazFox_ is now known as SamantazFox
18:51
jmdaemon has joined #crystal-lang
20:51
ur5us_ has joined #crystal-lang
21:24
_ht has quit [Remote host closed the connection]
21:45
bastienleonard has quit [Quit: WeeChat 3.8]
21:54
bastienleonard has joined #crystal-lang
21:56
<
bastienleonard >
Blacksmoke16: I don't think that would work: 1.chr => '\u0001'
21:59
<
bastienleonard >
need to add '0'.ord as show above
22:12
quazimodo has joined #crystal-lang
22:42
<
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.
22:56
sagax has joined #crystal-lang
23:00
<
mps >
I don't like to give advises but found this quite fine
23:03
<
mps >
but again, I don't like to say they are good or bad, depends on the reader
23:24
<
bastienleonard >
your mileage may vary, for example if you have no experience with Ruby
23:48
<
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
23:49
<
bastienleonard >
not sure that's clear
23:49
<
bastienleonard >
I can give a concrete example if needed