00:01
<
jhass >
I can see Nil#=== returning true for a null pointer
00:02
<
jhass >
but I think Nil#==(nullpointer) and nullpointer#==(nil) being false is actually a good thing
00:02
<
asterite >
>> nil == Pointer(Void).null
00:02
<
DeBot >
asterite: false
00:03
<
asterite >
You mean, you think the above should be true?
00:03
<
asterite >
>> a = 1; 5.times { |a| }; a
00:03
<
DeBot >
asterite: Syntax error in eval:3: block argument 'a' shadows local variable 'a'
00:04
<
jhass >
>> case Pointer(Void).null; when nil; true; else; false; end;
00:04
<
DeBot >
jhass: false
00:04
<
asterite >
Ah, ok. I never compare things to nil manually… in fact, I don't even use .nil? for that matter
00:04
<
jhass >
this one I would consider
00:07
weskinner_work has quit [Ping timeout: 252 seconds]
00:11
asterite has quit [Quit: Leaving.]
00:13
asterite has joined #crystal-lang
00:16
asterite has quit [Client Quit]
00:22
ismaelga has joined #crystal-lang
00:29
weskinner_work has joined #crystal-lang
00:36
weskinner_work has quit [Ping timeout: 246 seconds]
00:41
weskinner_mac has joined #crystal-lang
01:19
weskinner_mac has quit [Quit: weskinner_mac]
01:22
ismaelga has quit [Remote host closed the connection]
01:26
ismaelga has joined #crystal-lang
01:34
panga has quit [Remote host closed the connection]
02:28
bcardiff has joined #crystal-lang
02:41
knoopx has quit [Remote host closed the connection]
02:50
bcardiff has quit [Quit: Leaving.]
03:20
havenwood has quit []
03:20
shama has quit [Remote host closed the connection]
03:36
ponga has joined #crystal-lang
03:41
ponga has quit [Ping timeout: 244 seconds]
03:57
shama has joined #crystal-lang
04:38
shama has quit [Quit: (╯°□°)╯︵ɐɯɐɥs]
04:58
ismaelga has quit [Remote host closed the connection]
05:59
ismaelga has joined #crystal-lang
06:33
ismaelga has quit [Ping timeout: 256 seconds]
06:37
ponga has joined #crystal-lang
06:42
ponga has quit [Ping timeout: 265 seconds]
07:30
ismaelga has joined #crystal-lang
07:35
ismaelga has quit [Ping timeout: 240 seconds]
08:23
ponga has joined #crystal-lang
08:27
ponga has quit [Ping timeout: 252 seconds]
08:32
ismaelga has joined #crystal-lang
08:37
ismaelga has quit [Ping timeout: 240 seconds]
09:34
ismaelga has joined #crystal-lang
09:39
ismaelga has quit [Ping timeout: 252 seconds]
09:55
ponga has joined #crystal-lang
10:01
leafybasil has quit [Remote host closed the connection]
10:24
leafybasil has joined #crystal-lang
10:35
ismaelga has joined #crystal-lang
10:39
ismaelga has quit [Ping timeout: 244 seconds]
11:36
ismaelga has joined #crystal-lang
11:41
ismaelga has quit [Ping timeout: 272 seconds]
12:37
ismaelga has joined #crystal-lang
12:43
ismaelga has quit [Ping timeout: 265 seconds]
12:45
ponga has quit [Quit: Leaving...]
13:39
ismaelga has joined #crystal-lang
13:43
ismaelga has quit [Ping timeout: 250 seconds]
13:44
ponga has joined #crystal-lang
14:17
ponga has quit [Read error: Connection reset by peer]
14:17
ponga has joined #crystal-lang
14:21
ismaelga has joined #crystal-lang
14:40
asterite has joined #crystal-lang
14:56
weskinner_mac has joined #crystal-lang
14:58
asterite1 has joined #crystal-lang
14:58
asterite has quit [Read error: Connection reset by peer]
15:04
weskinner_mac has quit [Quit: weskinner_mac]
15:19
ponga has quit [Quit: Leaving...]
15:22
ponga has joined #crystal-lang
15:22
ponga has quit [Remote host closed the connection]
15:31
weskinner_work has joined #crystal-lang
15:35
havenwood has joined #crystal-lang
15:44
ponga has joined #crystal-lang
15:45
asterite1 has quit [Quit: Leaving.]
15:49
asterite has joined #crystal-lang
15:49
asterite has quit [Client Quit]
16:30
asterite has joined #crystal-lang
17:05
waj has joined #crystal-lang
17:21
ismaelga has quit [Remote host closed the connection]
17:49
ismaelga has joined #crystal-lang
17:56
ismaelga has quit [Remote host closed the connection]
18:15
ismaelga has joined #crystal-lang
18:33
ismaelga has quit [Remote host closed the connection]
19:12
leafybasil has quit [Remote host closed the connection]
19:24
bcardiff has joined #crystal-lang
19:38
asterite1 has joined #crystal-lang
19:41
asterite has quit [Ping timeout: 256 seconds]
19:47
weskinner_work has quit [Ping timeout: 245 seconds]
19:50
leafybasil has joined #crystal-lang
20:03
weskinner_work has joined #crystal-lang
20:16
<
crystal-gh >
crystal/master bb12198 Ary Borenszweig: Updated Changelog
20:24
shadeslayer has joined #crystal-lang
20:37
ponga has quit [Remote host closed the connection]
20:39
ponga has joined #crystal-lang
20:45
<
shadeslayer >
jhass: so I'm trying to port my ruby code to crystal and I found a bug in the compiler :p
20:45
<
jhass >
I do all the time ;)
20:45
<
asterite1 >
Hi shadeslayer
20:45
<
shadeslayer >
halo!
20:46
<
shadeslayer >
I don't really know to read that error message though
20:46
<
jhass >
shadeslayer: github pro tip: ```code fences``` to make your stuff more readable
20:46
<
shadeslayer >
done :)
20:47
<
asterite1 >
shadeslayer: just answered… I wonder if I can fix it and move the tag 0.6.1 without people thinking bad of me :-P
20:48
<
shadeslayer >
asterite1: how do you even read that error message btw
20:49
<
asterite1 >
shadeslayer: what error message?
20:49
<
shadeslayer >
asterite1: the one that dumps out "cast to Crystal::Generic failed"
20:50
<
asterite1 >
>> a = 1 || "hello"; a as String
20:50
<
DeBot >
asterite1: Exception: cast to String failed
20:50
<
asterite1 >
That exception is thrown when you cast a union type to some type, but you are wrong about your assumption :)
20:51
<
asterite1 >
The message could be much clearer, though, like "can't cast Int32 to String"...
20:51
<
shadeslayer >
right
20:51
<
asterite1 >
So, the compiler assumes a type is a Generic in some place, but it isn't
20:51
<
shadeslayer >
*nod*
20:51
<
travis-ci >
manastech/crystal#2075 (master - bb12198 : Ary Borenszweig): The build passed.
20:51
* shadeslayer
is still going through docs, so could very well be that I did something stupid
20:52
shama has joined #crystal-lang
20:52
<
asterite1 >
Oh, no, you didn't do anything wrong, it's just a compiler bug. I forgot to add an error for the case where you extend a generic type and don't provide the necessary type arguments :)
20:52
<
asterite1 >
But… porting a Ruby program to Crystal by copying everything is very brave from your part
20:53
<
shadeslayer >
heh ^^ :P
20:53
<
shadeslayer >
yeah, I wanted to see how far I'd get
20:53
<
asterite1 >
I would port it little by little, I think it would be easier. Crystal is very different than Ruby, though it looks similar
20:53
<
shadeslayer >
before things start blowing up
20:54
<
shadeslayer >
I see, anyway, I'm going to sleep, I'm just exhausted, cya tomorrow
20:58
<
asterite1 >
Good night
21:01
<
crystal-gh >
crystal/master 10882b3 Ary Borenszweig: Fixed #460: compiler crashes when inherting a generic type and not specifying its arguments
21:08
waj1 has joined #crystal-lang
21:10
waj has quit [Ping timeout: 252 seconds]
21:33
ponga has quit [Quit: Leaving...]
22:00
<
shadeslayer >
asterite1: btw any reason why crystal has File.read_lines instead of File.readlines
22:02
<
jhass >
same reason it has includes? instead of .include? I guess :P
22:18
<
travis-ci >
manastech/crystal#2076 (master - 10882b3 : Ary Borenszweig): The build passed.
22:35
ponga has joined #crystal-lang
22:46
havenwood has quit []
22:47
<
crystal-gh >
crystal/master 48461ba Ary Borenszweig: Implemented MD5 in Crystal
22:48
ponga has quit [Read error: Connection reset by peer]
22:50
<
asterite1 >
shadeslayer: yes, "read lines" is two words, and words are separated by "_". We know it's incompatible with Ruby, but it reads better and anyway you can't just port a Ruby program by copy pastying...
22:51
<
shadeslayer >
asterite1: right, was just wondering why it was read_lines
22:58
ponga has joined #crystal-lang
23:07
waj1 has quit [Quit: Leaving.]
23:09
asterite1 has quit [Quit: Leaving.]
23:18
<
travis-ci >
manastech/crystal#2077 (master - 48461ba : Ary Borenszweig): The build passed.
23:19
asterite has joined #crystal-lang
23:23
asterite1 has joined #crystal-lang
23:23
asterite has quit [Ping timeout: 252 seconds]
23:26
asterite has joined #crystal-lang
23:27
asterite1 has quit [Ping timeout: 252 seconds]
23:30
asterite has quit [Client Quit]
23:37
weskinner_work has quit [Quit: weskinner_work]
23:48
asterite has joined #crystal-lang
23:52
asterite1 has joined #crystal-lang
23:52
asterite has quit [Ping timeout: 245 seconds]
23:56
asterite1 has quit [Ping timeout: 250 seconds]
23:57
asterite has joined #crystal-lang