00:12
<
crystal-gh >
crystal/master 542cf0c Ary Borenszweig: Compiler: fixed parser bug
00:12
<
crystal-gh >
crystal/master 9aa2ed8 Ary Borenszweig: JSON: fixed error message for too deep nesting
00:21
matp_ has quit [Quit: ZZzzzZz...]
00:27
matp has joined #crystal-lang
00:32
<
crystal-gh >
[crystal] bcardiff closed pull request #3475: Moves permalink hashtag into gutter in docs (master...feat/doc-permalink-gutter)
https://git.io/vXvOh
00:54
HakanD_ has joined #crystal-lang
00:59
HakanD_ has quit [Ping timeout: 260 seconds]
01:37
danzilio has quit [Remote host closed the connection]
01:37
pduncan has joined #crystal-lang
01:37
danzilio has joined #crystal-lang
01:55
HakanD_ has joined #crystal-lang
01:59
HakanD_ has quit [Ping timeout: 250 seconds]
02:20
idev0urer has joined #crystal-lang
02:35
Philpax has joined #crystal-lang
02:40
pduncan has quit [Ping timeout: 260 seconds]
02:46
Philpax has quit [Ping timeout: 260 seconds]
02:56
HakanD_ has joined #crystal-lang
03:00
HakanD_ has quit [Ping timeout: 245 seconds]
03:00
pawnbox has joined #crystal-lang
03:18
kulelu88 has quit [Quit: Leaving]
03:33
pawnbox has quit [Remote host closed the connection]
03:56
HakanD_ has joined #crystal-lang
04:01
HakanD_ has quit [Ping timeout: 252 seconds]
04:29
HakanD_ has joined #crystal-lang
04:31
pawnbox has joined #crystal-lang
04:52
HakanD_ has quit [Quit: Be back later ...]
04:53
HakanD_ has joined #crystal-lang
04:57
pawnbox has quit [Remote host closed the connection]
04:57
HakanD_ has quit [Ping timeout: 276 seconds]
05:01
pawnbox has joined #crystal-lang
05:01
idev0urer has quit [Ping timeout: 250 seconds]
05:22
soveran has joined #crystal-lang
05:42
soveran has quit [Remote host closed the connection]
05:51
soveran has joined #crystal-lang
05:51
soveran has quit [Changing host]
05:51
soveran has joined #crystal-lang
06:09
pawnbox has quit [Remote host closed the connection]
06:10
pawnbox has joined #crystal-lang
06:10
pawnbox has quit [Remote host closed the connection]
06:10
pawnbox has joined #crystal-lang
06:41
Philpax has joined #crystal-lang
06:58
Philpax has quit [Ping timeout: 276 seconds]
07:05
bjz has joined #crystal-lang
07:12
bjz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
07:25
mark_66 has joined #crystal-lang
07:39
Philpax has joined #crystal-lang
07:45
Philpax has quit [Ping timeout: 260 seconds]
07:48
Philpax has joined #crystal-lang
07:55
pawnbox has quit [Remote host closed the connection]
08:17
ishahnaz has joined #crystal-lang
08:17
gloscombe has joined #crystal-lang
08:31
ishahnaz has quit []
08:45
ishahnaz has joined #crystal-lang
08:48
pawnbox has joined #crystal-lang
08:48
pawnbox has quit [Read error: Connection reset by peer]
08:49
pawnbox has joined #crystal-lang
08:50
ponga has joined #crystal-lang
08:53
<
FromGitter >
<sdogruyol> so i'd like to pass HTTP::Server::Context through multiple middlewares and modifying the response body each time
08:54
pawnbox has quit [Ping timeout: 276 seconds]
09:32
pawnbox has joined #crystal-lang
09:50
ishahnaz has quit []
10:25
jeromegn__ has joined #crystal-lang
10:25
jeromegn_ has quit [Ping timeout: 256 seconds]
10:26
jeromegn__ is now known as jeromegn_
10:41
bjz has joined #crystal-lang
10:51
pduncan has joined #crystal-lang
10:56
hmans has joined #crystal-lang
11:07
bjz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
11:07
pduncan has quit [Ping timeout: 265 seconds]
11:12
soveran has quit [Remote host closed the connection]
11:23
bjz has joined #crystal-lang
11:51
<
FromGitter >
<raydf> Hi @sdogruyol, why can't you?
11:51
soveran has joined #crystal-lang
11:51
soveran has joined #crystal-lang
11:51
soveran has quit [Changing host]
11:57
Raimondi has quit [Ping timeout: 244 seconds]
11:59
Raimondi has joined #crystal-lang
12:47
sai_ has joined #crystal-lang
12:47
sai_ has quit [Client Quit]
12:50
pawnbox has quit [Remote host closed the connection]
12:50
pawnbox has joined #crystal-lang
12:53
pawnbox has quit [Remote host closed the connection]
12:53
pawnbox has joined #crystal-lang
12:53
pawnbox has quit [Remote host closed the connection]
12:54
pawnbox has joined #crystal-lang
12:54
pawnbox has quit [Remote host closed the connection]
12:58
bjz has quit [Ping timeout: 250 seconds]
12:59
bjz has joined #crystal-lang
13:02
pawnbox has joined #crystal-lang
13:07
pawnbox has quit [Ping timeout: 260 seconds]
13:26
<
FromGitter >
<sdogruyol> i've done it
13:26
<
FromGitter >
<sdogruyol> it's just the test suite acting weird
13:26
<
FromGitter >
<sdogruyol> :P
13:27
pduncan has joined #crystal-lang
14:01
Philpax has quit [Ping timeout: 260 seconds]
14:05
jeromegn_ has quit [Ping timeout: 260 seconds]
14:13
pawnbox has joined #crystal-lang
14:18
<
FromGitter >
<sdogruyol> i've a weird situation
14:20
<
FromGitter >
<sdogruyol> the blocks always get evaluated before the add_handler CustomTestHandler.new call (even it's before the block declarations)
14:21
bjz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
14:28
<
FromGitter >
<sdogruyol> it's funny that crystal spec fails yet requiring the files one by one does not
14:28
<
FromGitter >
<sdogruyol> i don't get it
14:33
HakanD_ has joined #crystal-lang
14:39
jeromegn_ has joined #crystal-lang
14:53
mark_66 has quit [Remote host closed the connection]
14:56
Raimondii has joined #crystal-lang
14:56
Raimondi has quit [Remote host closed the connection]
14:56
Raimondii is now known as Raimondi
15:13
HakanD_ is now known as HakanD
15:21
soveran has quit [Remote host closed the connection]
15:32
<
crystal-gh >
crystal/master 36b2fc4 Ary Borenszweig: JSON: add more robust specs for deep nesting check, and fix error message
15:58
pduncan has quit [Read error: Connection reset by peer]
16:10
pawnbox has quit [Remote host closed the connection]
16:17
pawnbox has joined #crystal-lang
16:21
soveran has joined #crystal-lang
16:21
soveran has joined #crystal-lang
16:21
soveran has quit [Changing host]
16:21
pawnbox has quit [Remote host closed the connection]
16:26
soveran has quit [Ping timeout: 252 seconds]
16:26
pawnbox has joined #crystal-lang
16:26
Cyrus has joined #crystal-lang
17:24
gloscombe has quit [Remote host closed the connection]
17:28
pawnbox_ has joined #crystal-lang
17:28
Raimondi has quit [Write error: Broken pipe]
17:29
Raimondi has joined #crystal-lang
17:30
pawnbox has quit [Ping timeout: 271 seconds]
17:51
pawnbox has joined #crystal-lang
17:51
pawnbox_ has quit [Read error: Connection reset by peer]
18:14
bazaar has quit [Ping timeout: 256 seconds]
18:31
mhib has joined #crystal-lang
19:21
pawnbox has quit [Remote host closed the connection]
19:39
mhib has quit [Quit: Leaving]
19:51
bjz has joined #crystal-lang
20:05
soveran has joined #crystal-lang
20:05
soveran has joined #crystal-lang
20:05
soveran has quit [Changing host]
20:15
<
jokke >
how would you guys feel about Tempfile having a finalize where it unlinks?
20:16
<
jokke >
i think that'd be kinda neat
20:16
<
FromGitter >
<sdogruyol> are we in for implicit stuff like that?
20:16
<
FromGitter >
<johnjansen> doesnt the block form do that?
20:17
<
jokke >
block form closes
20:17
<
FromGitter >
<johnjansen> oh so you mean forcibly sweep
20:17
<
jokke >
i mean delete the file
20:19
<
FromGitter >
<johnjansen> yeah ignore me
20:20
<
FromGitter >
<johnjansen> note this comment `When a Tempfile object is garbage collected, or when the Ruby interpreter exits, its associated temporary file is automatically deleted. `
20:21
<
FromGitter >
<johnjansen> although they go on to say you should unlink … which is understandable but a little sideways
20:21
<
FromGitter >
<johnjansen> i assume the ruby behaviour is tried and true and has merit
20:50
Ven has joined #crystal-lang
20:52
bazaar has joined #crystal-lang
20:52
<
FromGitter >
<johnjansen> anyone got a good example of a macro which can wrap block content
20:55
<
BlaXpirit >
johnjansen, could you be more precise?
20:56
<
BlaXpirit >
>> macro test; {{yield}}; {{yield}}; end; test { p 5 }
20:59
<
FromGitter >
<johnjansen> yield … that is the magic
20:59
<
FromGitter >
<johnjansen> so obvious
21:11
bjz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
21:13
bazaar has quit [Ping timeout: 260 seconds]
21:16
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
21:39
soveran has quit [Remote host closed the connection]
21:49
<
FromGitter >
<jwoertink> How do I make an array of specific classes?
21:49
<
FromGitter >
<johnjansen> the class itself???
21:49
<
FromGitter >
<jwoertink> This throws an index out of bounds error
21:49
<
FromGitter >
<jwoertink> Yes, I want `[String, Nil]`
21:49
<
FromGitter >
<johnjansen> thats an array which can hold a String.class or Nil.class
21:50
<
FromGitter >
<johnjansen> `[String, Nil]`
21:50
<
FromGitter >
<johnjansen> ?
21:50
<
FromGitter >
<jwoertink> Yes, that's the end result I want. How do I make that?
21:50
<
FromGitter >
<johnjansen> hmmm `a = [String, Nil]`
21:51
<
FromGitter >
<jwoertink> lol
21:51
<
FromGitter >
<johnjansen> am i missing something?
21:51
<
FromGitter >
<jwoertink> I don't know the length, or order of the array
21:51
<
FromGitter >
<jwoertink> and it could have more than just those 2 classes
21:52
<
FromGitter >
<johnjansen> wait that didnt work
21:52
<
FromGitter >
<jwoertink> ah, just using the shovel works
21:52
<
FromGitter >
<johnjansen> shovel?
21:53
<
FromGitter >
<jwoertink> `<<`
21:53
<
FromGitter >
<jwoertink> shovel operator
21:53
<
FromGitter >
<johnjansen> oh haha
21:53
<
FromGitter >
<johnjansen> havent heard that before
21:53
<
FromGitter >
<jwoertink> That's weird that `a[0] = String` doesn't work but `a << String` does
21:53
<
FromGitter >
<jwoertink> maybe because the array needs to know the length for the first one?
21:54
<
FromGitter >
<johnjansen> until there is a 0 there isnt anything to assign to
21:54
<
FromGitter >
<johnjansen> or it would be a sparse array and you could do a[326473643] = blah
21:55
<
FromGitter >
<jwoertink> cool, thanks
21:55
<
FromGitter >
<johnjansen> i dont know how you would do `.size` if the array was assignable like that
21:55
<
FromGitter >
<jwoertink> you would iterate over each element regardless of it's position, and increment a counter
21:56
<
FromGitter >
<johnjansen> ok rephrase, i dont know how you would do it fast
21:56
<
FromGitter >
<jwoertink> lol
21:56
<
FromGitter >
<jwoertink> me either. That's above my paygrade
21:56
<
FromGitter >
<johnjansen> and you couldn’t iterate to size
21:56
<
FromGitter >
<johnjansen> that would be equivalent to a table scan
21:57
<
FromGitter >
<johnjansen> although you could implement it with a different underlying structure, which would probably make the correct option for that kind of access a hash
21:57
<
FromGitter >
<johnjansen> :-)
22:15
Raimondi has quit [Write error: Broken pipe]
22:15
Raimondi has joined #crystal-lang
22:15
matp has quit [Excess Flood]
22:26
Raimondii has joined #crystal-lang
22:27
Raimondi has quit [Remote host closed the connection]
22:27
Raimondii is now known as Raimondi
22:45
HakanD has quit [Ping timeout: 256 seconds]
22:52
<
FromGitter >
<johnjansen> you need to tell it what the tuple contains
22:52
<
FromGitter >
<johnjansen> and a tuple is immutable, so an empty one is useless
22:53
<
FromGitter >
<johnjansen> it would be `x = [] of Tuple(String, String, Int32)`
22:55
<
FromGitter >
<jwoertink> ah, ok.
23:40
matp has joined #crystal-lang