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