00:06
<
willl >
can you paste the error somewhere?
00:07
jfontan has quit [Ping timeout: 260 seconds]
00:26
<
dome22xl >
There should be an each method and somehow if gets lost when returning from function Error in ./quick.cr:284: undefined method 'each' for Nil (compile-time type is Set(String)?)
00:27
<
dome22xl >
the each method exists inside the function i've done json.each {|n| puts n } no problem
00:27
<
dome22xl >
but s = myfunction; s.each {|n| puts n } i get an error
00:28
<
dome22xl >
i can puts the json that has returned from the function also
00:31
jfontan has joined #crystal-lang
00:36
<
willl >
so what I think is happening, is the return type of #myfunction is not just Set(String) but the union of Set(String) and Nil. That's the ? at the end
00:36
<
willl >
and #each is not defined on Nil.
00:36
<
willl >
so you need to make sure myfunction doesn't ever return nil. you can call not_nil! on the thing you're returning which turns it into a runtime exception, but the better way is to make sure at compile-time it can never return nil
00:39
jfontan has quit [Ping timeout: 260 seconds]
00:44
<
dome22xl >
could do return variable of Set(String) ?
01:06
dome22xl has quit [Quit: Leaving]
02:08
maxpowa has quit [Quit: Ahh! My head is on fire!]
02:09
maxpowa has joined #crystal-lang
02:34
jokke has quit [Quit: WeeChat 1.4]
02:44
jokke has joined #crystal-lang
03:01
A124 has quit [Read error: Connection reset by peer]
03:05
|2701 has quit [Quit: Connection closed for inactivity]
03:06
A124 has joined #crystal-lang
04:10
pawnbox has joined #crystal-lang
05:03
soveran has joined #crystal-lang
05:03
soveran has quit [Changing host]
05:03
soveran has joined #crystal-lang
05:27
Philpax has joined #crystal-lang
05:59
jfontan has joined #crystal-lang
06:08
jfontan has quit [Ping timeout: 260 seconds]
06:36
soveran_ has joined #crystal-lang
06:37
soveran has quit [Ping timeout: 244 seconds]
06:40
Ven has joined #crystal-lang
06:48
soveran_ has quit [Remote host closed the connection]
06:50
trapped has joined #crystal-lang
07:01
trapped has quit [Read error: Connection reset by peer]
07:16
Philpax has quit [Ping timeout: 260 seconds]
07:31
pawnbox has quit [Remote host closed the connection]
07:35
pawnbox has joined #crystal-lang
07:40
mark_66 has joined #crystal-lang
08:01
jfontan has joined #crystal-lang
08:05
pawnbox has quit [Remote host closed the connection]
08:05
jfontan has quit [Client Quit]
08:10
Philpax has joined #crystal-lang
08:41
pawnbox has joined #crystal-lang
08:43
maxpowa has quit [Quit: Ahh! My head is on fire!]
08:44
maxpowa has joined #crystal-lang
08:48
pawnbox has quit [Remote host closed the connection]
08:53
pawnbox has joined #crystal-lang
08:57
maxpowa has quit [Ping timeout: 250 seconds]
09:00
maxpowa has joined #crystal-lang
09:06
pawnbox has quit [Remote host closed the connection]
09:07
pawnbox has joined #crystal-lang
09:11
pawnbox has quit [Remote host closed the connection]
09:11
pawnbox has joined #crystal-lang
09:40
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
10:08
maxpowa has quit [Ping timeout: 276 seconds]
10:12
Ven has joined #crystal-lang
10:12
maxpowa has joined #crystal-lang
10:33
maxpowa has quit [Ping timeout: 260 seconds]
10:36
maxpowa has joined #crystal-lang
10:45
matp has quit [Remote host closed the connection]
10:46
matp has joined #crystal-lang
11:02
trapped has joined #crystal-lang
11:11
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
11:51
|2701 has joined #crystal-lang
11:57
<
crystal-gh >
crystal/master 41b23e1 Ary Borenszweig: Updated Changelog
12:07
Ven has joined #crystal-lang
12:15
doug__ has joined #crystal-lang
12:25
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
12:47
pawnbox has quit [Remote host closed the connection]
12:47
doug__ has quit [Ping timeout: 250 seconds]
12:52
pawnbox has joined #crystal-lang
13:01
mgarciaisaia has joined #crystal-lang
13:37
maxpowa has quit [Ping timeout: 276 seconds]
13:43
maxpowa has joined #crystal-lang
13:51
mgarciaisaia has left #crystal-lang [#crystal-lang]
13:53
maxpowa has quit [Ping timeout: 276 seconds]
13:55
maxpowa has joined #crystal-lang
14:12
maxpowa has quit [Ping timeout: 250 seconds]
14:16
maxpowa has joined #crystal-lang
14:29
Liothen has quit [Ping timeout: 260 seconds]
14:33
Liothen has joined #crystal-lang
14:37
ozra_ has joined #crystal-lang
14:45
maxpowa has quit [Ping timeout: 276 seconds]
14:50
maxpowa has joined #crystal-lang
15:04
pawnbox has quit [Remote host closed the connection]
15:11
Yxhuvud has joined #crystal-lang
15:13
ozra_ has quit [Ping timeout: 240 seconds]
15:14
ozra_ has joined #crystal-lang
15:17
pawnbox has joined #crystal-lang
15:30
<
crystal-gh >
crystal/master a08e178 Julien Portalier: Detect target and inject C bindings path to CRYSTAL_PATH
15:30
<
crystal-gh >
crystal/master 27b790f Julien Portalier: Use generated C bindings + FreeBSD support
15:30
<
crystal-gh >
crystal/master 6d6b68d Julien Portalier: Fix: LibC.daylight may not be available
15:57
mark_66 has quit [Quit: Leaving.]
16:11
maxpowa has quit [Ping timeout: 250 seconds]
16:15
maxpowa has joined #crystal-lang
16:18
pawnbox has quit [Remote host closed the connection]
16:19
ozra_ has quit [Read error: Connection reset by peer]
16:20
pawnbox has joined #crystal-lang
16:28
<
crystal-gh >
crystal/master 01c634d Ary Borenszweig: Compiler: fixed wrong error message for missing arguments, they also included arguments with a default value
16:28
<
crystal-gh >
crystal/master fc89c1a Ary Borenszweig: Updated Changelog
16:54
maxpowa has quit [Ping timeout: 250 seconds]
16:59
crime has joined #crystal-lang
17:00
maxpowa has joined #crystal-lang
17:24
betheynyx has quit [Remote host closed the connection]
17:46
Philpax has quit [Ping timeout: 244 seconds]
17:49
maxpowa has quit [Ping timeout: 250 seconds]
17:54
maxpowa has joined #crystal-lang
18:19
Philpax has joined #crystal-lang
18:29
pawnbox has quit [Read error: Connection reset by peer]
18:29
pawnbox_ has joined #crystal-lang
18:59
mgarciaisaia has joined #crystal-lang
18:59
mgarciaisaia has left #crystal-lang [#crystal-lang]
19:09
am_ has joined #crystal-lang
19:16
am_ has quit [Quit: Leaving]
20:14
pawnbox_ has quit [Remote host closed the connection]
20:19
pawnbox has joined #crystal-lang
20:19
pawnbox has quit [Remote host closed the connection]
20:44
trapped has quit [Ping timeout: 260 seconds]
20:46
trapped has joined #crystal-lang
21:14
crime has quit [Ping timeout: 252 seconds]
21:23
soveran has joined #crystal-lang
21:23
Ven has joined #crystal-lang
21:26
maxpowa has quit [Quit: Ahh! My head is on fire!]
21:27
maxpowa has joined #crystal-lang
21:31
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
21:45
soveran has quit [Ping timeout: 250 seconds]
21:51
pawnbox has joined #crystal-lang
21:55
soveran has joined #crystal-lang
21:56
pawnbox has quit [Ping timeout: 240 seconds]
22:16
soveran has quit [Remote host closed the connection]
22:17
doug__ has joined #crystal-lang
22:17
trapped has quit [Read error: Connection reset by peer]
22:20
doug__ has quit [Client Quit]
22:20
deverly has joined #crystal-lang
22:25
deverly has quit [Remote host closed the connection]
22:49
<
crystal-gh >
crystal/master c6a1605 Ary Borenszweig: bin/crystal: remove workaround for Crystal 0.15.0. FIxes #2555
22:49
<
crystal-gh >
crystal/master 975c5b3 Ary Borenszweig: BigFloat: fixed typo in docs
22:51
<
crystal-gh >
crystal/master a47ec6a Ary Borenszweig: bin/crystal: missing removal of extra path
23:04
deverly has joined #crystal-lang
23:09
deverly has quit [Ping timeout: 260 seconds]
23:15
maxpowa has quit [Quit: Ahh! My head is on fire!]
23:20
pawnbox has joined #crystal-lang
23:25
pawnbox has quit [Ping timeout: 276 seconds]
23:27
maxpowa has joined #crystal-lang
23:29
nwmcsween_ has joined #crystal-lang
23:31
endou has joined #crystal-lang
23:32
endou_ has quit [Read error: Connection reset by peer]
23:32
Guest84847 has quit [Ping timeout: 260 seconds]
23:46
endou_ has joined #crystal-lang
23:48
endou has quit [Ping timeout: 260 seconds]
23:51
Philpax has quit [Ping timeout: 240 seconds]