00:02
<
FromGitter >
<Sija> @jwoertink In ruby it's an alias to `String#size` method which Crystal provides
00:03
<
FromGitter >
<Sija> `String#<<` would act more as a syntactic sugar making it easy to use it as any `IO`
00:03
<
FromGitter >
<jwoertink> Isn't `String#<<` an alias to `String#concat` in ruby?
00:03
pawnbox has quit [Ping timeout: 258 seconds]
00:04
<
FromGitter >
<Sija> it is, though i'm thinking more of a case of `"hello" << " world" << " from" << " Crystal"`
00:06
<
FromGitter >
<jwoertink> My guess is that methods that are an alias in ruby aren't being included in crystal. Though, I just tried and `String#concat` doesn't seem to exist either
00:07
<
FromGitter >
<jwoertink> I guess `+` is the way to go
00:08
<
FromGitter >
<Sija> yep, still I'd love to see `<<` in stdlib though
00:09
<
crystal-gh >
crystal/master 299bbdd Ary Borenszweig: Fixed #3040: Compiler crash when using responds_to? in case statement switch
00:17
<
FromGitter >
<cjgajard> I think there is no `String#<<` because in Crystal strings are immutable
00:18
<
FromGitter >
<jwoertink> Ah, yeah, that would make sense.
00:20
<
FromGitter >
<asterite> String is immutable. Check String.build and MemoryIO for a replacement of String#+ and String#<<
00:31
<
FromGitter >
<Sija> @asterite I know 'em, but IMO since there is `String#+` there could be a `<<` alias too... :)
00:54
pawnbox has joined #crystal-lang
00:55
onethirtyfive has joined #crystal-lang
00:59
pawnbox has quit [Ping timeout: 276 seconds]
01:10
Oliphaunte has quit [Remote host closed the connection]
01:18
Oliphaunte has joined #crystal-lang
01:30
pawnbox has joined #crystal-lang
01:32
onethirt_ has joined #crystal-lang
01:32
onethirtyfive has quit [Read error: Connection reset by peer]
01:35
onethirtyfive has joined #crystal-lang
01:35
onethirt_ has quit [Read error: Connection reset by peer]
01:35
pawnbox has quit [Ping timeout: 265 seconds]
01:37
onethirt_ has joined #crystal-lang
01:37
onethirtyfive has quit [Read error: Connection reset by peer]
01:40
onethirt_ has quit [Read error: Connection reset by peer]
01:40
onethirtyfive has joined #crystal-lang
01:42
onethirt_ has joined #crystal-lang
01:42
onethirtyfive has quit [Read error: Connection reset by peer]
01:45
onethirtyfive has joined #crystal-lang
01:45
onethirt_ has quit [Read error: Connection reset by peer]
01:46
snsei has joined #crystal-lang
01:54
snsei has quit [Remote host closed the connection]
01:58
onethirtyfive has quit [Remote host closed the connection]
02:02
snsei has joined #crystal-lang
02:04
onethirtyfive has joined #crystal-lang
02:06
snsei has quit [Ping timeout: 276 seconds]
02:15
onethirtyfive has quit [Remote host closed the connection]
02:19
dannluci1no has joined #crystal-lang
02:23
dannluciano has quit [Ping timeout: 276 seconds]
02:23
pawnbox has joined #crystal-lang
02:28
pawnbox has quit [Ping timeout: 250 seconds]
02:59
pawnbox has joined #crystal-lang
03:04
pawnbox has quit [Ping timeout: 240 seconds]
03:31
Oliphaunte has quit [Remote host closed the connection]
03:35
nakilon has quit [Quit: WHY NOT?]
03:35
pawnbox has joined #crystal-lang
03:40
pawnbox has quit [Ping timeout: 260 seconds]
03:52
zz_Cidan is now known as Cidan
03:54
snsei has joined #crystal-lang
04:00
Oliphaunte has joined #crystal-lang
04:01
<
FromGitter >
<HCLarsen> If String is immutable, is there going to be a mutable variant, like Apple did with their Cocoa library?
04:04
Oliphaunte has quit [Remote host closed the connection]
04:08
pawnbox has joined #crystal-lang
04:27
onethirtyfive has joined #crystal-lang
04:27
snsei has quit [Remote host closed the connection]
04:28
snsei has joined #crystal-lang
04:31
pawnbox has quit [Remote host closed the connection]
04:42
pawnbox has joined #crystal-lang
04:51
onethirt_ has joined #crystal-lang
04:51
onethirtyfive has quit [Read error: Connection reset by peer]
04:54
snsei has quit [Remote host closed the connection]
04:54
onethirt_ has quit [Read error: Connection reset by peer]
04:54
onethirtyfive has joined #crystal-lang
04:57
onethirtyfive has quit [Read error: Connection reset by peer]
04:57
onethirtyfive has joined #crystal-lang
05:51
onethirt_ has joined #crystal-lang
05:51
onethirtyfive has quit [Read error: Connection reset by peer]
05:51
dminuoso has joined #crystal-lang
06:14
onethirt_ has quit [Remote host closed the connection]
06:18
onethirtyfive has joined #crystal-lang
06:24
dminuoso_ has joined #crystal-lang
06:24
dminuoso has quit [Ping timeout: 260 seconds]
06:26
Cidan is now known as zz_Cidan
06:32
onethirtyfive has quit [Remote host closed the connection]
06:40
onethirtyfive has joined #crystal-lang
06:46
onethirtyfive has quit [Remote host closed the connection]
06:47
dminuoso_ has quit [Remote host closed the connection]
06:50
onethirtyfive has joined #crystal-lang
06:52
onethirtyfive has quit [Remote host closed the connection]
06:53
mark_66 has joined #crystal-lang
06:57
dminuoso has joined #crystal-lang
07:35
<
BlaXpirit >
HCLarsen, Slice is a mutable bytestring
08:02
dminuoso has left #crystal-lang [#crystal-lang]
08:12
dannluci1no has quit [Ping timeout: 244 seconds]
08:12
onethirtyfive has joined #crystal-lang
08:22
onethirtyfive has quit [Remote host closed the connection]
08:22
onethirtyfive has joined #crystal-lang
08:42
onethirtyfive has quit [Remote host closed the connection]
08:49
zodiak has quit [Ping timeout: 244 seconds]
08:52
pawnbox has quit [Remote host closed the connection]
08:53
anthony_ has joined #crystal-lang
08:54
pawnbox has joined #crystal-lang
09:03
pawnbox has quit [Remote host closed the connection]
09:14
dannluciano has joined #crystal-lang
09:19
dannluciano has quit [Ping timeout: 244 seconds]
09:22
pawnbox has joined #crystal-lang
09:24
soveran has joined #crystal-lang
09:32
Ven_ has joined #crystal-lang
09:59
soveran has quit [Remote host closed the connection]
10:17
trapped has joined #crystal-lang
11:00
soveran has joined #crystal-lang
11:00
soveran has quit [Changing host]
11:00
soveran has joined #crystal-lang
11:02
dannluciano has joined #crystal-lang
11:05
soveran has quit [Ping timeout: 250 seconds]
11:07
dannluciano has quit [Ping timeout: 265 seconds]
11:09
<
crystal-gh >
[crystal] puppetpies closed pull request #3038: Added tail UNIX like functionality (master...tailfunc)
https://git.io/vKSwZ
11:11
cyrillk has joined #crystal-lang
11:14
soveran has joined #crystal-lang
11:33
<
FromGitter >
<sdogruyol> hey all
11:48
<
FromGitter >
<alex-lairan> hi @sdogruyol :)
12:07
sooli has joined #crystal-lang
12:16
soveran has quit [Remote host closed the connection]
12:18
djdarkbeat has quit [Quit: djdarkbeat]
12:19
anthony_ has quit [Remote host closed the connection]
12:34
pawnbox has quit [Remote host closed the connection]
12:42
pawnbox has joined #crystal-lang
12:46
snsei has joined #crystal-lang
12:50
dannluciano has joined #crystal-lang
12:56
dannluciano has quit [Ping timeout: 276 seconds]
13:02
Oliphaunte has joined #crystal-lang
13:13
snsei has quit [Remote host closed the connection]
13:13
snsei has joined #crystal-lang
13:16
soveran has joined #crystal-lang
13:16
soveran has quit [Changing host]
13:16
soveran has joined #crystal-lang
13:22
soveran has quit [Ping timeout: 240 seconds]
13:25
Oliphaunte has quit [Remote host closed the connection]
13:40
sooli has quit [Ping timeout: 260 seconds]
13:46
paulcsmith_ has joined #crystal-lang
13:46
snsei_ has joined #crystal-lang
13:47
soveran has joined #crystal-lang
13:49
snsei has quit [Ping timeout: 244 seconds]
14:10
snsei_ has quit [Remote host closed the connection]
14:10
snsei has joined #crystal-lang
14:11
djdarkbeat has joined #crystal-lang
14:19
Oliphaunte has joined #crystal-lang
14:38
dannluciano has joined #crystal-lang
14:41
<
crystal-gh >
crystal/master b7e792e Ary Borenszweig: Fixed #3042: incorrects docs highlighting for %w(...) and %i(...)
14:43
dannluciano has quit [Ping timeout: 265 seconds]
14:50
Philpax_ has quit [Ping timeout: 252 seconds]
15:10
pawnbox has quit [Remote host closed the connection]
15:10
pawnbox has joined #crystal-lang
15:14
snsei has quit [Ping timeout: 240 seconds]
15:14
Raimondi has quit [Quit: All hail WeeChat 1.5-dev!]
15:15
Excureo has quit [Remote host closed the connection]
15:16
Raimondi has joined #crystal-lang
15:26
A124 has quit [Quit: '']
15:28
pawnbox has quit [Remote host closed the connection]
15:28
pawnbox has joined #crystal-lang
15:36
matp has quit [Remote host closed the connection]
15:37
A124 has joined #crystal-lang
15:42
Guest55646 is now known as adam12
15:48
matp has joined #crystal-lang
15:53
dannluciano has joined #crystal-lang
16:05
<
crystal-gh >
crystal/master bd222bf Endika Gutiérrez: BigInts now uses gmp implementation of gcd and lcm
16:05
<
crystal-gh >
crystal/master ca55409 Ary Borenszweig: Merge pull request #3039 from endSly/master...
16:06
mark_66 has quit [Remote host closed the connection]
16:06
<
FromGitter >
<jwoertink> Hey, can anyone help explain how the `ECR.embed` works? It looks like it's a macro, so I guess, how do I get outside variables to run inside that macro?
16:07
<
FromGitter >
<jwoertink> when I try to compile this bit of code, it throws an error (shown in comments)
16:09
<
FromGitter >
<jwoertink> I just run in to the same issue, or get syntax errors for nested macro statement
16:11
srabuini has joined #crystal-lang
16:13
sebasr has quit [Ping timeout: 260 seconds]
16:35
<
jhass >
jwoertink: yes it's a macro, so you can't pass it a runtime value as an argument
16:36
<
FromGitter >
<jwoertink> I just tried using the `ECR.process_file`, and that doesn't fail, but all of the files come out blank...
16:37
<
jhass >
probably just swallows the error or something
16:37
<
jhass >
it's a macro too
16:37
<
FromGitter >
<jwoertink> oh
16:37
<
FromGitter >
<jwoertink> In the case of what I'm trying to do, should I just make all those static filenames?
16:38
<
FromGitter >
<jwoertink> I'll probably have to do this like 10 times
16:38
onethirtyfive has joined #crystal-lang
16:38
<
FromGitter >
<jwoertink> alrighty then
16:38
<
FromGitter >
<jwoertink> thanks
16:38
<
jhass >
you can do something like {% for file in `find templates -type f -name *.ecr`.split("\n") %} I guess
16:49
Oliphaunte has quit [Remote host closed the connection]
16:56
dannluciano has quit [Ping timeout: 264 seconds]
16:57
zodiak has joined #crystal-lang
16:58
cyrillk has quit [Ping timeout: 250 seconds]
17:04
soveran has quit [Remote host closed the connection]
17:05
willl has joined #crystal-lang
17:16
<
[spoiler] >
Oh. This gitter thing works both ways. Nice
17:17
Oliphaunte has joined #crystal-lang
17:20
dannluciano has joined #crystal-lang
17:24
onethirtyfive has quit [Remote host closed the connection]
18:04
soveran has joined #crystal-lang
18:04
soveran has quit [Changing host]
18:04
soveran has joined #crystal-lang
18:09
soveran has quit [Ping timeout: 250 seconds]
18:43
djdarkbeat has quit [Read error: Connection reset by peer]
18:45
dannluciano has quit [Ping timeout: 244 seconds]
19:00
dannluciano has joined #crystal-lang
19:10
dannluci1no has joined #crystal-lang
19:13
dannluciano has quit [Ping timeout: 260 seconds]
19:39
Ven_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
19:40
<
FromGitter >
<jmoriau> Is it possible to auto-unpack a named tuple in a block arg? Tried a few things but couldn't figure it out :/
19:46
<
BlaXpirit >
jmoriau "auto"?
19:46
<
BlaXpirit >
jmoriau, "auto"?
19:46
<
FromGitter >
<jmoriau> yeah it can be done with normal tuple
19:46
<
FromGitter >
<jmoriau> something like .each {|key, (a, b)|}
19:47
<
FromGitter >
<jmoriau> where (a, b) is a Tuple as the value for key
19:57
<
crystal-gh >
[crystal] ysbaddaden opened pull request #3043: IO::Hexdump for binary protocol inspection (master...std-io-hexdump)
https://git.io/vKHMJ
19:59
pawnbox has quit [Remote host closed the connection]
20:00
pawnbox has joined #crystal-lang
20:06
soveran has joined #crystal-lang
20:11
soveran has quit [Ping timeout: 258 seconds]
20:15
<
tilpner >
The docs for rand(int) say the values is greater than 0. That seems wrong?
20:15
<
tilpner >
*values are/*value is
20:16
<
BlaXpirit >
tilpner, where
20:16
<
BlaXpirit >
ah right.
20:22
dannluci1no has quit [Ping timeout: 258 seconds]
20:31
<
crystal-gh >
crystal/master 6f83d17 Ary Borenszweig: Compiler: unify CStructOrUnionType with NonGenericClassType....
20:31
<
crystal-gh >
crystal/master c25e705 Ary Borenszweig: Random: doc fix for `rand(Int)`
21:06
<
crystal-gh >
[crystal] endSly opened pull request #3046: Added support for negating unsigned integers (master...master)
https://git.io/vKHb6
22:03
dannluciano has joined #crystal-lang
22:07
matp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
22:08
dannluciano has quit [Ping timeout: 244 seconds]
22:09
soveran has joined #crystal-lang
22:10
matp has joined #crystal-lang
22:13
soveran has quit [Ping timeout: 265 seconds]
22:16
Oliphaunte has quit [Remote host closed the connection]
22:34
Philpax_ has joined #crystal-lang
22:49
Philpax_ has quit [Ping timeout: 252 seconds]
23:03
trapped has quit [Ping timeout: 258 seconds]
23:50
paulcsmith_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
23:51
dannluciano has joined #crystal-lang
23:56
dannluciano has quit [Ping timeout: 240 seconds]