jhass changed the topic of #crystal-lang to: The Crystal programming language | http://crystal-lang.org | Crystal 0.15.0 | Fund Crystals development: http://is.gd/X7PRtI | Paste > 3 lines of text to https://gist.github.com | GH: https://github.com/crystal-lang/crystal | Docs: http://crystal-lang.org/docs/ | API: http://crystal-lang.org/api/ | Logs: http://irclog.whitequark.org/crystal-lang
<willl> can you paste the error somewhere?
jfontan has quit [Ping timeout: 260 seconds]
<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)?)
<dome22xl> the each method exists inside the function i've done json.each {|n| puts n } no problem
<dome22xl> but s = myfunction; s.each {|n| puts n } i get an error
<dome22xl> i can puts the json that has returned from the function also
jfontan has joined #crystal-lang
<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
<willl> and #each is not defined on Nil.
<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
jfontan has quit [Ping timeout: 260 seconds]
<dome22xl> could do return variable of Set(String) ?
<willl> maybe. can you put the method on https://play.crystal-lang.org/ ?
dome22xl has quit [Quit: Leaving]
maxpowa has quit [Quit: Ahh! My head is on fire!]
maxpowa has joined #crystal-lang
jokke has quit [Quit: WeeChat 1.4]
jokke has joined #crystal-lang
A124 has quit [Read error: Connection reset by peer]
|2701 has quit [Quit: Connection closed for inactivity]
A124 has joined #crystal-lang
pawnbox has joined #crystal-lang
soveran has joined #crystal-lang
soveran has quit [Changing host]
soveran has joined #crystal-lang
Philpax has joined #crystal-lang
jfontan has joined #crystal-lang
jfontan has quit [Ping timeout: 260 seconds]
soveran_ has joined #crystal-lang
soveran has quit [Ping timeout: 244 seconds]
Ven has joined #crystal-lang
soveran_ has quit [Remote host closed the connection]
trapped has joined #crystal-lang
trapped has quit [Read error: Connection reset by peer]
Philpax has quit [Ping timeout: 260 seconds]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
mark_66 has joined #crystal-lang
jfontan has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
jfontan has quit [Client Quit]
Philpax has joined #crystal-lang
pawnbox has joined #crystal-lang
maxpowa has quit [Quit: Ahh! My head is on fire!]
maxpowa has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
maxpowa has quit [Ping timeout: 250 seconds]
maxpowa has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
maxpowa has quit [Ping timeout: 276 seconds]
Ven has joined #crystal-lang
maxpowa has joined #crystal-lang
maxpowa has quit [Ping timeout: 260 seconds]
maxpowa has joined #crystal-lang
matp has quit [Remote host closed the connection]
matp has joined #crystal-lang
trapped has joined #crystal-lang
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
|2701 has joined #crystal-lang
<crystal-gh> [crystal] asterite pushed 1 new commit to master: https://git.io/vwFpF
<crystal-gh> crystal/master 41b23e1 Ary Borenszweig: Updated Changelog
Ven has joined #crystal-lang
<travis-ci> crystal-lang/crystal#41b23e1 (master - Updated Changelog): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/128035209
doug__ has joined #crystal-lang
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
pawnbox has quit [Remote host closed the connection]
doug__ has quit [Ping timeout: 250 seconds]
pawnbox has joined #crystal-lang
mgarciaisaia has joined #crystal-lang
maxpowa has quit [Ping timeout: 276 seconds]
maxpowa has joined #crystal-lang
mgarciaisaia has left #crystal-lang [#crystal-lang]
maxpowa has quit [Ping timeout: 276 seconds]
maxpowa has joined #crystal-lang
maxpowa has quit [Ping timeout: 250 seconds]
maxpowa has joined #crystal-lang
Liothen has quit [Ping timeout: 260 seconds]
Liothen has joined #crystal-lang
ozra_ has joined #crystal-lang
maxpowa has quit [Ping timeout: 276 seconds]
maxpowa has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
Yxhuvud has joined #crystal-lang
ozra_ has quit [Ping timeout: 240 seconds]
ozra_ has joined #crystal-lang
pawnbox has joined #crystal-lang
<crystal-gh> [crystal] asterite pushed 12 new commits to master: https://git.io/vwb21
<crystal-gh> crystal/master a08e178 Julien Portalier: Detect target and inject C bindings path to CRYSTAL_PATH
<crystal-gh> crystal/master 27b790f Julien Portalier: Use generated C bindings + FreeBSD support
<crystal-gh> crystal/master 6d6b68d Julien Portalier: Fix: LibC.daylight may not be available
<travis-ci> crystal-lang/crystal#a2ba374 (master - Merge pull request #2442 from ysbaddaden/posix): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/128077463
mark_66 has quit [Quit: Leaving.]
maxpowa has quit [Ping timeout: 250 seconds]
maxpowa has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
ozra_ has quit [Read error: Connection reset by peer]
pawnbox has joined #crystal-lang
<crystal-gh> [crystal] asterite pushed 2 new commits to master: https://git.io/vwb17
<crystal-gh> crystal/master 01c634d Ary Borenszweig: Compiler: fixed wrong error message for missing arguments, they also included arguments with a default value
<crystal-gh> crystal/master fc89c1a Ary Borenszweig: Updated Changelog
<travis-ci> crystal-lang/crystal#fc89c1a (master - Updated Changelog): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/128090654
maxpowa has quit [Ping timeout: 250 seconds]
crime has joined #crystal-lang
maxpowa has joined #crystal-lang
betheynyx has quit [Remote host closed the connection]
Philpax has quit [Ping timeout: 244 seconds]
maxpowa has quit [Ping timeout: 250 seconds]
maxpowa has joined #crystal-lang
Philpax has joined #crystal-lang
pawnbox has quit [Read error: Connection reset by peer]
pawnbox_ has joined #crystal-lang
mgarciaisaia has joined #crystal-lang
mgarciaisaia has left #crystal-lang [#crystal-lang]
am_ has joined #crystal-lang
am_ has quit [Quit: Leaving]
pawnbox_ has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
trapped has quit [Ping timeout: 260 seconds]
trapped has joined #crystal-lang
crime has quit [Ping timeout: 252 seconds]
soveran has joined #crystal-lang
Ven has joined #crystal-lang
maxpowa has quit [Quit: Ahh! My head is on fire!]
maxpowa has joined #crystal-lang
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
soveran has quit [Ping timeout: 250 seconds]
pawnbox has joined #crystal-lang
soveran has joined #crystal-lang
pawnbox has quit [Ping timeout: 240 seconds]
soveran has quit [Remote host closed the connection]
doug__ has joined #crystal-lang
trapped has quit [Read error: Connection reset by peer]
doug__ has quit [Client Quit]
deverly has joined #crystal-lang
deverly has quit [Remote host closed the connection]
<crystal-gh> [crystal] asterite pushed 2 new commits to master: https://git.io/vwNSE
<crystal-gh> crystal/master c6a1605 Ary Borenszweig: bin/crystal: remove workaround for Crystal 0.15.0. FIxes #2555
<crystal-gh> crystal/master 975c5b3 Ary Borenszweig: BigFloat: fixed typo in docs
<crystal-gh> [crystal] asterite pushed 1 new commit to master: https://git.io/vwNS9
<crystal-gh> crystal/master a47ec6a Ary Borenszweig: bin/crystal: missing removal of extra path
<travis-ci> crystal-lang/crystal#c6a1605 (master - bin/crystal: remove workaround for Crystal 0.15.0. FIxes #2555): The build was broken. https://travis-ci.org/crystal-lang/crystal/builds/128172749
<travis-ci> crystal-lang/crystal#a47ec6a (master - bin/crystal: missing removal of extra path): The build was broken. https://travis-ci.org/crystal-lang/crystal/builds/128173238
deverly has joined #crystal-lang
deverly has quit [Ping timeout: 260 seconds]
maxpowa has quit [Quit: Ahh! My head is on fire!]
pawnbox has joined #crystal-lang
pawnbox has quit [Ping timeout: 276 seconds]
maxpowa has joined #crystal-lang
nwmcsween_ has joined #crystal-lang
endou has joined #crystal-lang
endou_ has quit [Read error: Connection reset by peer]
Guest84847 has quit [Ping timeout: 260 seconds]
endou_ has joined #crystal-lang
endou has quit [Ping timeout: 260 seconds]
Philpax has quit [Ping timeout: 240 seconds]