jhass changed the topic of #crystal-lang to: The Crystal programming language | http://crystal-lang.org | Crystal 0.7.6 | Fund Crystals development: http://is.gd/X7PRtI | Paste > 3 lines of text to https://gist.github.com | GH: https://github.com/manastech/crystal | Docs: http://crystal-lang.org/docs/ | API: http://crystal-lang.org/api/ | Logs: http://irclog.whitequark.org/crystal-lang
trapped has quit [Read error: Connection reset by peer]
zamith_ has quit [Quit: Be back later ...]
<crystal-gh> [crystal] asterite closed pull request #1313: Fix Bcrypt Int32 overflow (master...fix-bcrypt-int32-overflow) http://git.io/vGmjk
zamith_ has joined #crystal-lang
<travis-ci> manastech/crystal#49c4191 (master - Merge pull request #1313 from sferik/fix-bcrypt-int32-overflow): The build passed. https://travis-ci.org/manastech/crystal/builds/77770100
kumpelblase2 has quit [Quit: Leaving...]
kyrylo has quit [Quit: Konversation terminated!]
kyrylo has joined #crystal-lang
dylanmei has quit [Quit: ZZZzzz…]
zamith_ has quit [Quit: Be back later ...]
dyulax has quit [Quit: Saindo]
qard has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
kyrylo has quit [Ping timeout: 246 seconds]
fowlduck has joined #crystal-lang
davydov_anton has joined #crystal-lang
davydov_anton has quit [Client Quit]
elbow_jason has joined #crystal-lang
ssvb has quit [Remote host closed the connection]
ssvb has joined #crystal-lang
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
dylanmei has joined #crystal-lang
leafybasil has quit [Remote host closed the connection]
leafybasil has joined #crystal-lang
fowlduck has quit [Remote host closed the connection]
<crystal-gh> [crystal] MakeNowJust opened pull request #1317: Add note of arguments evaluation timing (gh-pages...patch-1) http://git.io/vGs15
dylanmei has quit [Quit: ZZZzzz…]
fowlduck has joined #crystal-lang
fowlduck has quit [Ping timeout: 250 seconds]
dylanmei has joined #crystal-lang
Kilo`byte has quit [Ping timeout: 244 seconds]
ssvb has quit [Ping timeout: 260 seconds]
Kilo`byte has joined #crystal-lang
leafybasil has quit [Remote host closed the connection]
BlaXpirit has joined #crystal-lang
havenwood has quit [Ping timeout: 272 seconds]
<crystal-gh> [crystal] technorama opened pull request #1319: Add Socket option helper methods. (master...f/socket_options) http://git.io/vGsb3
Ven has joined #crystal-lang
Ven has quit [Remote host closed the connection]
Ven has joined #crystal-lang
fowlduck has joined #crystal-lang
fowlduck has quit [Ping timeout: 256 seconds]
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Ven has joined #crystal-lang
Ven has quit [Ping timeout: 255 seconds]
tatey_ has quit []
<BlaXpirit> hmm i wonder why this works
<BlaXpirit> >> lib Lib; struct Test; a: Int32; end; end; s = Lib::Test.new(a: 5); p = pointerof(s); p.value.a = 6; s
<DeBot> BlaXpirit: # => Lib::Test(@a=6) - http://carc.in/#/r/d4d
<BlaXpirit> >> struct Test; property a; def initialize(@a); end; end; s = Test.new(5); p = pointerof(s); p.value.a = 6; s
<DeBot> BlaXpirit: # => Test(@a=6) - http://carc.in/#/r/d4f
<BlaXpirit> is Pointer#value magical?
<BlaXpirit> >> struct Test; property a; def initialize(@a); end; end; s = Test.new(5); p = pointerof(s); p[0].a = 6; s # appears so
<DeBot> BlaXpirit: # => Test(@a=5) - http://carc.in/#/r/d4h
Ven has joined #crystal-lang
<jhass> yeah, doesn't surprise me though, it's kinda what you expect, no?
<BlaXpirit> jhass, what do you mean?
<BlaXpirit> well i wouldn't expect .value and [0] to give different results
<jhass> mh, fair
<BlaXpirit> structs are very weird :(
<BlaXpirit> there is no way to prevent copying a struct, unlike in most languages
<BlaXpirit> well actually as we see passing it by a pointer works and .value is magical
kyrylo has joined #crystal-lang
trapped has joined #crystal-lang
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Ven has joined #crystal-lang
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dyulax has joined #crystal-lang
zamith_ has joined #crystal-lang
Ven has joined #crystal-lang
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kyrylo has quit [Ping timeout: 246 seconds]
no0p has quit [Ping timeout: 250 seconds]
zamith_ has quit [Read error: Connection reset by peer]
zamith_ has joined #crystal-lang
Pine has joined #crystal-lang
Pine is now known as Guest66317
Guest66317 has quit [Client Quit]
zamith_ has quit [Quit: Be back later ...]
NeverDie has joined #crystal-lang
ssvb has joined #crystal-lang
<BlaXpirit> crystal latest release works well, but crystal latest master says "unexpected token: ox" here https://github.com/BlaXpirit/crsfml/blob/master/src/system.cr#L66
<BlaXpirit> removing that line makes it compile
<BlaXpirit> so does removing the conditional and leaving only the first if-branch
<BlaXpirit> what is going on here??
<BlaXpirit> bisect it is then
<jhass> must be a regression, yeah
<BlaXpirit> hah i wish, it doesnt compile in bisect :(
<BlaXpirit> also i cant reproduce this with smaller piece of code
<BlaXpirit> i'll just try this commit then
<BlaXpirit> and how does it work c98c971~1 ?
<jhass> ah, no, wrong one
<jhass> yeah, ~1 or just ^
<BlaXpirit> ok works on ~1
<BlaXpirit> wait, that was the old one
<jhass> ~1 / ^ is the parent of the rev you specify
<jhass> ~2 / ^^ is the parent of the parent
<BlaXpirit> yes, i mean i tested c98c971~1 and it works
<jhass> and so on
<BlaXpirit> too bad bisect is unreliable
<jhass> huh
<BlaXpirit> i was unable to compile during bisect
<BlaXpirit> unable to compile some old version of crystal with the current master
<jhass> ah, make clean crystal helps
<BlaXpirit> 7c72b83 doesn't work
<jhass> CI ensures every commit compiles with the last release
<jhass> so git bisect start; git bisect bad; git bisect good 0.7.6; make clean crystal; repro; git bisect good / git bisect bad
<BlaXpirit> 7c72b83~1 works
<BlaXpirit> you got it right, jhass
<BlaXpirit> jhass, yeah, i did that but without `clean`
<BlaXpirit> reported
Ven has joined #crystal-lang
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tatey_ has joined #crystal-lang
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
<jokke> hi
<jokke> there's no Net::HTTP in crystal yet, right?
<BlaXpirit> ...
<jokke> or some other way to make http requests
<BlaXpirit> that's more like it
<BlaXpirit> there is HTTP::Client
<jokke> oh!
<jokke> awesome!
<jokke> thanks :)
<jokke> And what about something like URL.encode_www_form?
<crystal-gh> [crystal] asterite pushed 1 new commit to master: http://git.io/vGGDL
<crystal-gh> crystal/master 548e7df Ary Borenszweig: Fixed #1320: regression in responds_to? parsing
<tatey_> You could try `HTTP::Client#post_form`. The second argument is a hash which gets built into an encoded form.
<jokke> tatey_: i need it in a get request :/
<tatey_> It's using `CGI.build_form` under the hood so you could use that too.
<jokke> oh great
<jokke> thanks!
Ven has joined #crystal-lang
<travis-ci> manastech/crystal#548e7df (master - Fixed #1320: regression in responds_to? parsing): The build passed. https://travis-ci.org/manastech/crystal/builds/77811729
kyrylo has joined #crystal-lang
lokulin has quit [Ping timeout: 256 seconds]
tatey_ has quit []
wonderbreadz has quit [*.net *.split]
wonderbreadz has joined #crystal-lang
rossjones has quit [*.net *.split]
wmoxam has quit [*.net *.split]
wmoxam has joined #crystal-lang
rossjones has joined #crystal-lang
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lokulin has joined #crystal-lang
Ven has joined #crystal-lang
dylanmei has quit [Quit: ZZZzzz…]
dylanmei has joined #crystal-lang
<BlaXpirit> what's the equivalent to shell OUTPUT=`cmd1 || cmd2`
<BlaXpirit> >> `false || echo ok` #wow
<DeBot> BlaXpirit: # => "ok\n" - http://carc.in/#/r/d4w
kyrylo has quit [Ping timeout: 244 seconds]
havenwood has joined #crystal-lang
<jhass> yup
<jhass> system if you want to leave stdin/stdout/stderr inherited from the current process
<BlaXpirit> is it implemented so or does it go through a shell?
<jhass> yes
<jhass> /bin/sh -c
<BlaXpirit> :/
<jokke> where would i define aliases?
<jokke> i have a type of hash i use alot in my code: Symbol => (String | Bool | Int32)
<jokke> and i'd like to alias it to something shorter
<jokke> where would i do this?
<jhass> do you have a main namespace, module MyProject ?
<jokke> yes
<jokke> there?
<jhass> I'd do it there
<jokke> ok
<jokke> and do i have to namespace the type?
<jokke> as in MyProject::MyType?
<jhass> outside MyProject, yes
<jokke> ok
<jhass> it should resolve like a normal constant
<jokke> thats perfect
<jokke> aw man, i'm liking crystal more and more
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
oal has joined #crystal-lang
<jokke> if i have a method with a default value for an argument, do i still have to restrict the type to that of the default value or is that implicit?
<jhass> BlaXpirit: you'd rather like us to reimplement a shell or?
<jhass> jokke: that's not implicit iirc, no
<jokke> ok
<jhass> thing of the common case of foo=nil for example
<jokke> yeah
<jhass> that restriction wouldn't be very useful
<jokke> make's sense
<jokke> makes
dylanmei has quit [Quit: ZZZzzz…]
<jokke> why isn't hash an enumerable?
<jokke> weird
<jhass> jokke: because there's no autosplat
<jokke> hm?
<jhass> so you'd get tuples
<jhass> .each do |kv|, .map {|kv|
<jhass> |key, value| wouldn't work
<jokke> oh ok
<jokke> but hash has it's own each
<jokke> which works as expected
<jokke> right?
<jhass> ye
<jhass> s
<jokke> ok
<jhass> it yields two values, but Enumerable expects one
<jokke> i see
<jokke> would be cool if there were a reduce
<jhass> there's inject
<jokke> oh there is?
<jokke> oh sorry
<jhass> or is it missing on hash?
<jokke> it seems it is
<jhass> what do you need it for?
<jokke> well _actually_ i would need all?
<jokke> so reduce isn't the way to go anyway
<jokke> because it needs to break as soon as the block evaluates to a falsy value
dylanmei has joined #crystal-lang
<jhass> .find ?
<jokke> what do you mean/
<jokke> ?
<jhass> oh, I think it's just an all?
<jokke> yeah
<jhass> but query is a hash, gotcha
<jokke> yeah
<jhass> >> {foo: :bar}.each.all? {|kv| key, value = kv; key == :foo && value == :bar }
<DeBot> jhass: # => true - http://carc.in/#/r/d4z
<jhass> could abuse iterators .P
<jokke> hm yeah
<jhass> but implementing all? for Hash wouldn't be rejected ;)
<jokke> :)
<jokke> well
<jokke> why not :)
<jokke> easy enough
Ven has joined #crystal-lang
kyrylo has joined #crystal-lang
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<jokke> do you prefer single return statements for methods?
<jokke> i could either return from the iteration or set the return value and then break
<jokke> the latter would have just one return statement
<jokke> the former looks prettier though
<jhass> I'd prefer to return from the iteration too
<jokke> ok
<jokke> while i'm at it, do we need a find?
<jhass> idk, I always found find on Hashes a bit awkward
<jokke> yeah
<jhass> like as if you setup the hash the wrong way around
<jokke> yup
<jokke> i'll leave it out
<jokke> jhass: is there a faster way to spec the code than make && make spec?
<jhass> you don't need to make unless you changed something in src/compiler (or something that it depends to and results in a buggy compiler)
<jhass> you can run a specific spec file directly, crystal spec/std/hash_spec.cr
<jokke> ok
<jhass> er, bin/crystal
<jokke> ah ok
<jokke> makes sense
<jhass> and even a specific spec with :line_number
<jokke> oh cool
<jokke> hm
<jokke> ok
<jokke> yeah works
<jokke> are you guys shitting me? There's OAuth2 in std?! How awesome is that! :)
<crystal-gh> [crystal] jreinert opened pull request #1322: implement all? any? and inject for Hash (master...master) http://git.io/vGZl4
<jokke> oh! :)
<jokke> neat
kyrylo has quit [Ping timeout: 252 seconds]
dylanmei has quit [Quit: ZZZzzz…]
leafybasil has joined #crystal-lang
<shevy> oh there is jokke
<jokke> hm?
<shevy> this is like a refugee place for rubyists!
<jokke> haha
<jokke> didn't know i was known to be a rubyist
<shevy> of course - you are ghosting on #ruby :)
<jokke> :)
<jokke> so is jhass
<shevy> yeah but he is like always active everywhere
<jokke> :)
<shevy> he must have like 10 arms
<jhass> \o/ I'm a godess
<jokke> so whatdya think of crystal? :)
<shevy> dunno yet, I still have to move beyond hello world
<jokke> :)
<jhass> eh, sorry, _`\o/´_ I mean
<shevy> I got it to work though so that is something... second time I was using Io, I could not compile it
<jokke> btw how hard is it to (cross)? compile for windows?
<jhass> ?windows
<DeBot> Windows support is currently developed at https://github.com/xwanderer/crystal/tree/win32/win32
<jokke> mhm
<jokke> ok
<jokke> so very early stage
elbow_jason has quit [Ping timeout: 240 seconds]
<jhass> if the target platform is support, it's fairly easy
<jhass> you'll need the libs available there and a linker
<jhass> and then you "just" --cross-compile target-triple on the host
<jhass> gives you an .o and the command to link it
<jokke> mmh
fowlduck has joined #crystal-lang
elbow_jason has joined #crystal-lang
fowlduck has quit [Ping timeout: 250 seconds]
ingsoc has joined #crystal-lang
blue_deref has joined #crystal-lang
elbow_jason has quit [Ping timeout: 255 seconds]
elbow_jason has joined #crystal-lang
zamith_ has joined #crystal-lang
elbow_jason has quit [Ping timeout: 272 seconds]
kulelu88 has joined #crystal-lang
elbow_jason has joined #crystal-lang
zz_Cidan has quit [Remote host closed the connection]
elbow_jason has quit [Ping timeout: 246 seconds]
ingsoc has quit [Read error: Connection reset by peer]
elbow_jason has joined #crystal-lang
qard has joined #crystal-lang
qard has quit [Client Quit]
havenn has joined #crystal-lang
<jokke> is this a bug? https://p.jreinert.com/MzYfb/
havenwood has quit [Ping timeout: 244 seconds]
blue_deref has quit [Quit: Taking myself out of hear.]
fowlduck has joined #crystal-lang
<jhass> jokke: no, notice the String?
<jhass> that's shortcut for String|Nil
<jhass> so the host you pass may be nil
fowlduck has quit [Ping timeout: 250 seconds]
<kulelu88> jhass: what do you think of crystal compared to Go?
<jokke> ah i see
<BlaXpirit> jokke, your https is broken. better use http to not startle some browsers
<thor77> BlaXpirit: its not broken, it's just cacert
<jhass> kulelu88: I've never done Go
<BlaXpirit> reading crystal tutorial be like WOW THESE ARE SUCH GOOD IDEAS I CANT BELIEVE SOMEONE CAME UP WITH THIS
<BlaXpirit> reading go tutorial like... well this is boring. this is redundant. this sucks. nothing new
<kulelu88> its kind of sad that Go has the momentum now
<BlaXpirit> money will be money
<shevy> google will be google
<dyulax> what go can do that crystal cannot? multi-thread stuff?
<shevy> rainbow ponies
<dyulax> that's heavy shit
<dyulax> i will move to go
elbow_jason has quit [Ping timeout: 260 seconds]
<shevy> I don't know go, perhaps one difference may be that import system they have
<jhass> dyulax: we have distributing coroutines on a thread pool on the roadmap though
<jhass> and you can still call into pthread, it's fairly useless atm though
<jhass> you'd have to reimplement IO and ditch stdlib's
elbow_jason has joined #crystal-lang
<BlaXpirit> jhass, it seems like any GC on additional threads just breaks :|
<jokke> BlaXpirit: as soon as lets encrypt is out my cert is not "broken" anymore
<BlaXpirit> says "Collecting from unknown thread"
<jokke> jhass: i think this should be caught way earlier in the chain though
<shevy> hmm is there a crystal logo?
zamith_ has quit [Ping timeout: 250 seconds]
<jokke> the black crystal?
zamith_ has joined #crystal-lang
<shevy> oh yes
<shevy> thanks, I downloaded the favicon from the front page, I just needed a small icon for my local knowledge base
<BlaXpirit> there is svg, nice. u can get any size
<shevy> 32x32!
<shevy> can one alias to a method?
<jokke> shevy: nope
<shevy> hmm
<jokke> shevy: that's for aliasing types
<jokke> yeah that's why you don't find reduce for example :)
<jokke> there's only inject
<shevy> aha
<shevy> will we have to use .collect or .map ? :)
<jokke> hehe
<jokke> but aliasing types is pretty neat
<jokke> you can do sth like alias Params = Hash(Symbol, (String | Bool | Int32))
<jokke> i've been coding ruby for so long that i almost forgot how powerful a typed language is
<jhass> shevy: nope, map over collect ;)
<jokke> hm
<jokke> jhass: it seems abort doesnt reduce possible types
dyulax has quit [Quit: This computer has gone to sleep]
<jhass> "abort"?
<jokke> >> foo = ["bar", nil]; bar = foo.sample; abort("woah") if bar.nil?; bar.succ
<DeBot> jokke: Error in line 4: undefined method 'succ' for Nil (compile-time type is String?) - http://carc.in/#/r/d59
<jokke> see
<jokke> jhass: yeah i just discovered it
<jokke> it's like `STDERR.puts("woah"); exit(1)`
<jokke> at least in ruby
<jhass> mmh
<jhass> >> a = ["bar", nil].sample; exit unless a; typeof(a)
<DeBot> jhass: # => String - http://carc.in/#/r/d5a
<jhass> >> a = ["bar", nil].sample; abort unless a; typeof(a)
<DeBot> jhass: Error in line 4: wrong number of arguments for 'abort' (0 for 1, 2) - http://carc.in/#/r/d5b
<jhass> >> a = ["bar", nil].sample; abort("Hi") unless a; typeof(a)
<DeBot> jhass: Hi - http://carc.in/#/r/d5c
<jhass> >> a = ["bar", nil].sample; abort("Hi") unless a; typeof(a)
<DeBot> jhass: Hi - http://carc.in/#/r/d5d
<jhass> sigh
<jhass> >> a = ["bar", nil].sample; abort("Hi") unless a; typeof(a)
<DeBot> jhass: # => String - http://carc.in/#/r/d5e
<jokke> hehe
<jhass> .nil? is causing it
<jokke> seems so
<jhass> since the user could override it to mean whatever
<jokke> oh ok
<jokke> well.
<jokke> not after compiling..
<jokke> shoud be known to the compiler
havenn has quit [Ping timeout: 244 seconds]
kyrylo has joined #crystal-lang
elbow_jason has quit [Quit: Leaving]
whothey has joined #crystal-lang
whothey has quit [Client Quit]
<jokke> hey
<jokke> i get an error about find not being defined for Nil
<jhass> you know github (thus gist) already has crystal syntax highlighting :P
<jokke> really?
<jokke> that's cool
<jokke> my pastebin uses pygments :/
<jhass> then response[endpoint_plural_name] might return nil
<jhass> just choose Ruby
<jokke> but above i check it?
<jhass> it's a method call
<jokke> oke
<jokke> ok
<jhass> it might change between invocation
<jhass> assign the result to a local, then you can check it
<jokke> ok
<jokke> will do
<crystal-gh> [crystal] krisleech opened pull request #1324: Remove lib specific content from README generated by crystal init app (master...lib_app_init_differences) http://git.io/vGnPl
<jokke> oh oh
<jokke> not good
<jokke> Error: you've found a bug in the Crystal compiler. Please open an issue, including source code that will allow us to reproduce the bug: https://github.com/manastech/crystal/issues
<jokke> Bug: trying to downcast HTTP::ChunkedContent <- HTTP::FixedLengthContent
<jhass> ah
<jhass> got fixed recently
<jhass> compile new head ;)
<jokke> \o/
<crystal-gh> [crystal] tbpgr opened pull request #1325: Fix typo (master...fix_typo_bit_array) http://git.io/vGn5c
<jokke> hm
<jokke> maybe i don't understand the option parser
<jokke> but i think there's a bug
<jokke> after parsing @options is {:action => ""}
<jokke> and the args i passed were -a list
<jhass> the snippet you showed only defines -t
<jokke> oh
<jhass> (and --target)
<jokke> well -a is analog
<jokke> *the same
<jhass> I think you need to -a ACTION
<jokke> you're right
<jokke> hm
<jokke> it's unnecessary
dylanmei has joined #crystal-lang
shevy has left #crystal-lang ["I'll be back ... maybe"]
fowlduck has joined #crystal-lang
fowlduck has quit [Ping timeout: 240 seconds]
NeverDie has joined #crystal-lang
<jokke> hmm
<jokke> i'm having trouble with the http module
<jokke> i just get bad request back from the server
<jokke> but if i debug it locally it looks fine
<jokke> the request looks fine
<jokke> and if i fire it from curl it works
<jokke> is there something wrong with ssl maybe in crystal?
<jhass> that shouldn't get you as far as receiving a bad request
<jokke> true
<jhass> maybe try mitmproxy and compare the request against the curl one
<jokke> mitmproxy?
<jhass> mitmproxy.org
<jokke> ahhh
<jokke> there bad request comes from cloudflare
<jokke> maybe some problem with that
<jokke> HTTP::Headers{"Server" => "cloudflare-nginx"...
<jhass> they might have some heuristics detecting badly coded clients, who knows ;)
<jokke> lol
<jhass> I'd still recommend comparing the generated requests
<jokke> there's an api key in the request
<jhass> and?
<jhass> mitmproxy runs on your local machine
<jokke> oh
<jokke> oh ok :D
<jokke> jhass: does crystal honor proxy env vars?
<jokke> or how should i route the traffic over the proxy?
<jhass> no it doesn't, you have to edit the code for now and use the reverse proxy mode
<jokke> ok
<jokke> so you mean i edit the host to point to localhost:8080 and let mitmproxy forward the requests to the correct host? (and back?
<jhass> yes
<jokke> ok
<jhass> and then you edit the curl command to use localhost:8080 too and compare
<jokke> yeah
<jokke> good idea
<jokke> thanks again
<jokke> didnt know mitmproxy and i've been a webdev for over 3 years now
<jhass> don't worry, I only discovered it like 6 months ago too
<jokke> :)
<jokke> hm lol
<jokke> the requests work through the proxy
<jhass> yeah that might happen
<jhass> still, compare them
<jokke> yeah
<jokke> have i defined this in a wrong way somehow?
<jokke> alias ItemArray = Array(Hash(String, JSON::Type))
<jokke> i expect it to be something like [{"foo" => "bar"}, {"bar" => "baz", "x" => 3}]
<jhass> you may have to cast stuff to JSON::Type :/
<jokke> oh god
dylanmei has quit [Quit: bang. gone.]
<jhass> yeah, I too think aliases should just eat that
<jhass> >> require "json"; h = {} of String => JSON::Type; h["foo"] = "bar"
<DeBot> jhass: # => "bar" - http://carc.in/#/r/d5x
<jokke> how would i cast it? map over it and "as JSON::Type"?
<jhass> mmh
<jhass> >> require "json"; h = {} of String => JSON::Type; h["foo"] = "bar"; h["bar"] = 1
<DeBot> jhass: Error in line 4: no overload matches 'Hash(String, JSON::Type)#[]=' with types String, Int32 - http://carc.in/#/r/d5y
<jokke> ah
<jokke> damn
<jhass> >> require "json"; h = {} of String => JSON::Type; h["foo"] = "bar" as JSON::Type; h["bar"] = 1 as JSON::Type
<DeBot> jhass: Error in line 4: can't cast Int32 to JSON::Type - http://carc.in/#/r/d5z
<jhass> okay, idk
<jokke> shit
<jhass> >> require "json"; typeof(JSON::Type)
<DeBot> jhass: # => Class - http://carc.in/#/r/d60
<jokke> oh
<jokke> it's a class
<jokke> well then
<jhass> nah, that's just silly
<jhass> it's an alias
<jokke> ok
<jhass> JSON::Any is the class
havenwood has joined #crystal-lang
BlaXpirit has quit [Quit: Konversation]
<crystal-gh> [crystal] asterite closed pull request #1322: implement all? any? and inject for Hash (master...master) http://git.io/vGZl4
<crystal-gh> [crystal] asterite closed pull request #1325: Fix typo (master...fix_typo_bit_array) http://git.io/vGn5c
<jokke> \o/ now i can use my own Hash functions
<crystal-gh> [crystal] asterite pushed 2 new commits to master: http://git.io/vGcTU
<crystal-gh> crystal/master 2651eb0 Kris Leech: Remove lib specific content from README generated by crystal init
<crystal-gh> crystal/master bfe125b Ary Borenszweig: Merge pull request #1324 from krisleech/lib_app_init_differences...
<travis-ci> manastech/crystal#bb93d57 (master - Merge pull request #1322 from jreinert/master): The build passed. https://travis-ci.org/manastech/crystal/builds/77867981
<travis-ci> manastech/crystal#aa5898f (master - Merge pull request #1325 from tbpgr/fix_typo_bit_array): The build passed. https://travis-ci.org/manastech/crystal/builds/77868018
tatey_ has joined #crystal-lang
<jokke> ok.. wat?
<travis-ci> manastech/crystal#bfe125b (master - Merge pull request #1324 from krisleech/lib_app_init_differences): The build passed. https://travis-ci.org/manastech/crystal/builds/77868190