00:05
Philpax has joined #crystal-lang
00:10
lex__ has joined #crystal-lang
00:18
shama has quit [Quit: (╯°□°)╯︵ɐɯɐɥs]
00:21
greengriminal has joined #crystal-lang
00:38
qard has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
00:48
dylanmei has quit [Ping timeout: 272 seconds]
00:52
lex__ has quit [Ping timeout: 246 seconds]
00:57
rmosolgo has joined #crystal-lang
00:59
rmosolgo has quit [Remote host closed the connection]
01:09
CraigBuchek has joined #crystal-lang
01:10
Papierkorb has quit [Ping timeout: 240 seconds]
01:18
Papierkorb has joined #crystal-lang
01:38
dylanmei has joined #crystal-lang
01:39
rmosolgo has joined #crystal-lang
01:41
fowlduck has quit [Remote host closed the connection]
01:45
greengriminal has quit [Quit: Leaving]
01:57
dylanmei has quit [Quit: ZZZzzz…]
02:05
fowlduck has joined #crystal-lang
02:09
fowlduck has quit [Remote host closed the connection]
02:25
dylanmei has joined #crystal-lang
02:26
dylanmei has quit [Client Quit]
03:15
dylanmei has joined #crystal-lang
03:19
dylanmei has quit [Client Quit]
03:21
rmosolgo has quit [Remote host closed the connection]
03:22
greengriminal has joined #crystal-lang
03:24
rmosolgo has joined #crystal-lang
03:25
rmosolgo has quit [Remote host closed the connection]
03:35
<
crystal-gh >
[crystal] adlerhsieh opened pull request #1662: Add type restrictions to methods' arguments in SecureRandom library (master...secure-random-type)
http://git.io/vc4rO
03:38
rmosolgo has joined #crystal-lang
03:42
rmosolgo has quit [Remote host closed the connection]
03:48
rmosolgo has joined #crystal-lang
04:46
greengriminal has quit [Quit: Leaving]
04:51
havenwood has joined #crystal-lang
04:59
trapped has joined #crystal-lang
05:00
sooli has joined #crystal-lang
05:00
sadin has quit [Remote host closed the connection]
05:03
sadin has joined #crystal-lang
05:19
rmosolgo has quit [Remote host closed the connection]
05:21
rmosolgo has joined #crystal-lang
05:21
rmosolgo has quit [Remote host closed the connection]
05:24
sadin has quit [Remote host closed the connection]
05:25
sadin has joined #crystal-lang
06:37
Ven has joined #crystal-lang
06:40
sooli has quit [Read error: No route to host]
06:46
nakilon has joined #crystal-lang
07:09
CraigBuchek has quit [Quit: Leaving.]
07:11
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
07:11
sadin has quit [Remote host closed the connection]
07:19
havenwood has quit [Ping timeout: 260 seconds]
07:22
rmosolgo has joined #crystal-lang
07:23
elia has joined #crystal-lang
07:23
elia has quit [Read error: Connection reset by peer]
07:23
nakilon has quit [Ping timeout: 246 seconds]
07:26
rmosolgo has quit [Ping timeout: 240 seconds]
07:29
Ven has joined #crystal-lang
07:35
leafybasil has quit [Remote host closed the connection]
07:52
BlaXpirit has joined #crystal-lang
08:07
<
crystal-gh >
crystal/master 46e9a0d Anton Davydov: Fix typo in Deque class [skip ci]
08:07
<
crystal-gh >
crystal/master 0ff257d Julien Portalier: Merge pull request #1660 from davydovanton/doc-fix-typo...
08:24
BlaXpirit has quit [Quit: Konversation]
08:25
sooli has joined #crystal-lang
08:26
BlaXpirit has joined #crystal-lang
08:30
BlaXpirit_ has joined #crystal-lang
08:30
BlaXpirit has quit [Killed (kornbluth.freenode.net (Nickname regained by services))]
08:31
BlaXpirit has quit [Remote host closed the connection]
08:31
BlaXpirit has joined #crystal-lang
08:33
ingsoc has quit [Quit: Leaving.]
08:34
ingsoc has joined #crystal-lang
08:41
BlaXpirit has quit [Read error: Connection reset by peer]
08:41
Excureo has quit [Remote host closed the connection]
08:42
BlaXpirit has joined #crystal-lang
08:44
Excureo has joined #crystal-lang
08:48
BlaXpirit has quit [Quit: Konversation]
09:20
<
crystal-gh >
[crystal] veelenga opened pull request #1665: [ci-skip] Fixed few typos in docs (gh-pages...patch-doc-1)
http://git.io/vcB6y
09:20
nakilon has joined #crystal-lang
09:21
<
crystal-gh >
[crystal] ysbaddaden closed pull request #1665: [ci skip] Fixed few typos in docs (gh-pages...patch-doc-1)
http://git.io/vcB6y
09:24
nakilon has quit [Ping timeout: 246 seconds]
09:27
BlaXpirit has joined #crystal-lang
09:54
<
crystal-gh >
crystal/master 0c2a7f4 Adler: Add type restrictions to methods' arguments in SecureRandom library
09:54
<
crystal-gh >
crystal/master 59c0822 Jonne Haß: Merge pull request #1662 from adlerhsieh/secure-random-type...
10:11
<
jhass >
Philpax: yeah I guess it's a bug
10:16
<
Philpax >
yeah, I've had some issues with the nil type deduction
10:16
<
Philpax >
I think they stem from that one issue
10:16
<
Philpax >
should I make an issue?
10:16
<
jhass >
sure, we can always close it if it turns out intended
10:20
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
10:22
sooli has quit [Ping timeout: 272 seconds]
10:28
sooli has joined #crystal-lang
10:28
sooli_ has joined #crystal-lang
10:54
BlaXpirit has quit [Read error: Connection reset by peer]
10:54
BlaXpirit has joined #crystal-lang
10:58
sooli has quit [Ping timeout: 240 seconds]
10:58
sooli has joined #crystal-lang
10:58
sooli_ has quit [Ping timeout: 255 seconds]
11:01
<
crystal-gh >
crystal/master acd0b6a Guilherme Bernal: Fixes #1659: Do not try to read response body if request was HEAD
11:01
<
crystal-gh >
crystal/master fae0987 Jonne Haß: Merge pull request #1661 from lbguilherme/http-head...
11:03
sooli has quit [Ping timeout: 260 seconds]
11:03
sooli_ has joined #crystal-lang
11:03
sooli has joined #crystal-lang
11:04
ponga has joined #crystal-lang
11:05
BlaXpirit has quit [Quit: Konversation]
11:07
sooli__ has joined #crystal-lang
11:14
Ven has joined #crystal-lang
11:14
pawnbox has joined #crystal-lang
11:21
nakilon has joined #crystal-lang
11:25
nakilon has quit [Ping timeout: 260 seconds]
11:36
apt-get has joined #crystal-lang
11:38
irclogger_______ has quit [Ping timeout: 256 seconds]
11:38
irclogger_______ has joined #crystal-lang
11:43
unshadow has quit [Quit: leaving]
11:45
unshadow has joined #crystal-lang
11:55
Philpax has quit [Quit: Leaving]
11:56
cina has quit [Remote host closed the connection]
12:06
sooli__ has quit [Ping timeout: 272 seconds]
12:06
sooli has quit [Ping timeout: 264 seconds]
12:07
sooli_ has quit [Ping timeout: 268 seconds]
12:07
BlaXpirit has joined #crystal-lang
12:08
BlaXpirit has quit [Client Quit]
12:23
Philpax has joined #crystal-lang
12:28
apt-get has quit [Read error: Connection reset by peer]
12:50
sooli has joined #crystal-lang
12:50
sooli_ has joined #crystal-lang
12:51
sooli__ has joined #crystal-lang
12:52
alanwillms has joined #crystal-lang
13:07
trapped has quit [Read error: Connection reset by peer]
13:08
trapped has joined #crystal-lang
13:11
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
13:14
BlaXpirit has joined #crystal-lang
13:22
Ven has joined #crystal-lang
13:24
dylanmei has joined #crystal-lang
13:25
apt-get has joined #crystal-lang
13:27
NeverDie has joined #crystal-lang
13:29
<
crystal-gh >
[crystal] jhass closed pull request #1549: File#truncate (master...File#truncate)
http://git.io/vn0Cm
13:46
greengriminal has joined #crystal-lang
13:59
sadin has joined #crystal-lang
14:13
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
14:14
apt-get has quit [Ping timeout: 246 seconds]
14:23
Ven has joined #crystal-lang
14:28
unshadow has quit [Ping timeout: 250 seconds]
14:28
sadin is now known as Sadin
14:30
unshadow has joined #crystal-lang
14:30
pawnbox has quit [Remote host closed the connection]
14:33
apt-get has joined #crystal-lang
14:47
ssvb has joined #crystal-lang
14:48
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
14:50
havenwood has joined #crystal-lang
14:50
pawnbox has joined #crystal-lang
14:52
Ven has joined #crystal-lang
15:04
pawnbox has quit [Ping timeout: 244 seconds]
15:13
rmosolgo has joined #crystal-lang
15:13
sooli615 has joined #crystal-lang
15:20
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
15:27
Sadin has quit [Remote host closed the connection]
15:30
BlaXpirit has quit [Quit: Konversation]
15:38
lokulin has quit [Ping timeout: 240 seconds]
15:39
Ven has joined #crystal-lang
15:54
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
15:59
Ven has joined #crystal-lang
16:03
Philpax_ has joined #crystal-lang
16:04
dylanmei has quit [Quit: ZZZzzz…]
16:07
Philpax has quit [Ping timeout: 268 seconds]
16:12
havenwood has quit [Ping timeout: 260 seconds]
16:20
<
dzv >
#1620 problems? comments?
16:22
Sadin has joined #crystal-lang
16:27
qard has joined #crystal-lang
16:34
gamemanj has joined #crystal-lang
16:37
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
16:40
sooli has quit [Ping timeout: 255 seconds]
16:41
sooli_ has quit [Ping timeout: 268 seconds]
16:41
sooli__ has quit [Ping timeout: 255 seconds]
16:41
sooli615 has quit [Ping timeout: 240 seconds]
16:42
jeromegn has joined #crystal-lang
16:42
dylanmei has joined #crystal-lang
16:43
sooli has joined #crystal-lang
16:44
sooli_ has joined #crystal-lang
16:44
sooli__ has joined #crystal-lang
16:44
BlaXpirit has joined #crystal-lang
16:44
sooli556 has joined #crystal-lang
16:46
jeromegn has left #crystal-lang [#crystal-lang]
16:46
jeromegn has joined #crystal-lang
16:46
jeromegn has left #crystal-lang [#crystal-lang]
16:46
jeromegn has joined #crystal-lang
16:50
alanwillms93 has joined #crystal-lang
16:52
alanwillms has quit [Ping timeout: 246 seconds]
16:56
<
lex_ >
I am new to Crystal and is trying to implement linkedlist to get the feel of the language
16:56
<
lex_ >
but can't get a hang of the type inference happening during the compile time
16:56
jeromegn has quit [Quit: jeromegn]
16:57
jeromegn has joined #crystal-lang
16:57
<
lex_ >
here is a sample of the problem I have:
16:58
<
lex_ >
in line 49: undefined method 'getItem' for Nil (compile-time type is Link(Int32)?)
16:59
Philpax_ has quit [Ping timeout: 265 seconds]
17:00
dylanmei has quit [Ping timeout: 240 seconds]
17:00
alanwillms93 has quit [Quit: This computer has gone to sleep]
17:01
<
rmosolgo >
I'm new here too
17:01
<
rmosolgo >
but I think that falls under "Nillable instance variables"
17:01
<
rmosolgo >
maybe it needs a `if var.is_a?(...)`
17:03
<
jhass >
lex_: you'll need to assign next to a local and check it's not nil (the list head)
17:03
<
jhass >
(or tail rather)
17:03
<
jhass >
since next may return nil since @next may be nil since setNext accepts nil
17:03
<
jhass >
(and so does the constructor)
17:04
alanwillms has joined #crystal-lang
17:05
<
lex_ >
hmm, maybe I am writing crystal with Java in the back of my mind.
17:05
<
dzv >
Link.new that accepts nil seems odd. Why not just set @next to nil?
17:06
<
jhass >
lex_: that anyway, conventions are two spaces, underscore_case for method and variable names
17:06
<
jhass >
and no get_, set_ or is_ prefixes
17:06
<
jhass >
well, in Java your code would throw a null pointer exception at runtime I guess ;)
17:06
<
lex_ >
thanks, I'll keep that in mind
17:06
<
jhass >
at least potentially
17:10
<
lex_ >
in Java that will happen at the runtime, if the next is actually null
17:10
<
jhass >
yes, in crystal it won't, intentionally so
17:11
Ven has joined #crystal-lang
17:13
<
lex_ >
hmm, I see. So basically the implementation needs to change.
17:16
Ven has quit [Ping timeout: 264 seconds]
17:17
ssvb has quit [Ping timeout: 246 seconds]
17:22
ssvb has joined #crystal-lang
17:22
<
lex_ >
thanks jhass, please correct me if I am wrong: 'next_link && next_link.item' tells me if link and item for that link are both not nil?
17:23
<
jhass >
it exploits the short circuiting behavior
17:23
nakilon has joined #crystal-lang
17:24
<
jhass >
the value of foo && bar is the first non-truthy (nil, false, null pointer) or the last truthy value
17:24
<
jhass >
>> nil && "foo"
17:24
<
jhass >
>> true && "foo"
17:24
<
rmosolgo >
^^ that's badass.
17:24
<
rmosolgo >
>> false && nil && "result"
17:24
<
jhass >
crystal knows that so it knows that if you reach link_item.item, link_item can't be nil
17:25
<
rmosolgo >
>> false || nil || "result"
17:28
nakilon has quit [Ping timeout: 265 seconds]
17:35
<
lex_ >
sorry, i am new. could you also explain a bit about "p @curr.next.try &.item": it is printing the item from @curr.next ...
17:36
<
jhass >
do you understand @curr.next.try {|e| e.item } ?
17:36
<
lex_ >
from the docs: Object.try
17:36
<
lex_ >
This method is useful for dealing with nilable types, to safely perform operations only when the value is not nil.
17:36
<
BlaXpirit >
if @curr.next p curr.next.item
17:37
<
BlaXpirit >
i think that's (kinda) equivalent
17:37
<
jhass >
well, you'll need to go over a local
17:37
sooli has quit [Ping timeout: 250 seconds]
17:38
sooli_ has quit [Ping timeout: 240 seconds]
17:38
sooli__ has quit [Ping timeout: 250 seconds]
17:40
<
lex_ >
makes sense. Thanks everyone. I think I need more understanding of the language but it was a great help.
17:40
sooli has joined #crystal-lang
17:41
sooli_ has joined #crystal-lang
17:42
sooli__ has joined #crystal-lang
17:42
havenwood has joined #crystal-lang
17:43
fowlduck has joined #crystal-lang
17:52
lex_ has quit [Quit: Page closed]
17:56
thor77 has joined #crystal-lang
18:05
sdogruyol has joined #crystal-lang
18:10
<
jokke >
hi sdogruyol
18:10
<
sdogruyol >
jokke: o/ how are you doing
18:12
n0xff has joined #crystal-lang
18:15
sdogruyo_ has joined #crystal-lang
18:15
sdogruyol has quit [Read error: Connection reset by peer]
18:15
<
jokke >
fine thanks, just reeeeally annoyed about netflix
18:16
<
sdogruyo_ >
jokke: netflix? Do you have it in your country
18:16
<
jokke >
i have a server in the us with vpn
18:17
<
jokke >
but now netflix has somehow noticed, that i'm not from the us and i get the crappy selection of movies and series from my country
18:17
<
sdogruyo_ >
jokke: oh now that's interesting :)
18:17
<
jokke >
but i guess that's a bit off topic :P
18:17
<
sdogruyo_ >
jokke: you from germany?
18:18
<
sdogruyo_ >
jokke: ok
18:18
greengriminal has quit [Quit: This computer has gone to sleep]
18:18
greengriminal has joined #crystal-lang
18:19
greengriminal has quit [Client Quit]
18:28
shadeslayer has quit [Ping timeout: 240 seconds]
18:29
shadeslayer has joined #crystal-lang
18:31
<
crystal-gh >
crystal/master ca2f892 Ary Borenszweig: Merge pull request #1658 from rhysd/sample/quine...
18:31
<
crystal-gh >
crystal/master ba46aa7 rhysd: Added new sample: Quine...
18:45
<
crystal-gh >
[crystal] rmosolgo opened pull request #1667: Add simple style guide to docs (gh-pages...styleguide)
http://git.io/vcEMa
18:48
jwaldrip has joined #crystal-lang
18:52
sdogruyo_ has quit [Remote host closed the connection]
18:55
sooli_ has quit [Ping timeout: 240 seconds]
18:55
sooli556 has quit [Ping timeout: 246 seconds]
18:55
sooli has quit [Ping timeout: 272 seconds]
18:55
sooli__ has quit [Ping timeout: 240 seconds]
18:58
<
crystal-gh >
[crystal] davydovanton opened pull request #1669: Fix typos in Matrix documentation (master...doc-fix-matrix)
http://git.io/vcE97
19:00
greengriminal has joined #crystal-lang
19:04
<
crystal-gh >
[crystal] technorama opened pull request #1670: Check libc function return values. (master...f/libc_return_checking)
http://git.io/vcE7Y
19:06
<
crystal-gh >
crystal/master dc84c8d Anton Davydov: Fix typos in Matrix documentation [skip ci]
19:06
<
crystal-gh >
crystal/master 1ef69b4 Jonne Haß: Merge pull request #1669 from davydovanton/doc-fix-matrix...
19:22
<
crystal-gh >
crystal/master f289d4e Technorama Ltd: Check libc function return values.
19:22
<
crystal-gh >
crystal/master 2a85608 Jonne Haß: Merge pull request #1670 from technorama/f/libc_return_checking...
19:23
nakilon has joined #crystal-lang
19:27
lokulin has joined #crystal-lang
19:32
jwaldrip has quit [Quit: Be back later ...]
19:35
jwaldrip has joined #crystal-lang
19:40
fowlduck has quit [Remote host closed the connection]
19:43
ponga has quit [Quit: Connection closed for inactivity]
19:48
ingsoc has quit [Quit: Leaving.]
19:49
ingsoc has joined #crystal-lang
19:53
sdogruyol has joined #crystal-lang
19:55
fowlduck has joined #crystal-lang
19:58
sdogruyol has quit [Ping timeout: 240 seconds]
20:00
fowlduck has quit [Ping timeout: 256 seconds]
20:01
alanwillms has quit [Quit: This computer has gone to sleep]
20:04
alanwillms has joined #crystal-lang
20:07
fowlduck has joined #crystal-lang
20:08
Sadin has quit [Remote host closed the connection]
20:14
jwaldrip_ has joined #crystal-lang
20:15
jbye has quit [Ping timeout: 255 seconds]
20:16
jwaldrip has quit [Ping timeout: 250 seconds]
20:22
unshadow_ has joined #crystal-lang
20:24
unshadow has quit [Ping timeout: 250 seconds]
20:29
alanwillms has quit [Quit: This computer has gone to sleep]
20:37
alanwillms has joined #crystal-lang
20:38
unshadow_ has quit [Ping timeout: 240 seconds]
20:41
unshadow has joined #crystal-lang
20:42
gamemanj has quit [Ping timeout: 240 seconds]
20:44
apt-get has quit [Remote host closed the connection]
20:46
jbye has joined #crystal-lang
20:47
lokulin has quit [Ping timeout: 246 seconds]
20:47
ssvb has quit [Ping timeout: 246 seconds]
21:01
ssvb has joined #crystal-lang
21:03
lokulin has joined #crystal-lang
21:06
alanwillms has quit [Quit: This computer has gone to sleep]
21:11
qard has joined #crystal-lang
21:17
<
crystal-gh >
[crystal] davydovanton opened pull request #1672: Fix typos in type_inference.cr (master...doc-fix-type-inference)
http://git.io/vcu2T
21:21
havenwood has joined #crystal-lang
21:21
BlaXpirit has quit [Quit: Konversation]
21:42
jwaldrip_ has quit [Quit: Be back later ...]
21:44
fowlduck has quit [Remote host closed the connection]
21:48
jwaldrip_ has joined #crystal-lang
21:52
jwaldrip__ has joined #crystal-lang
21:54
trapped has quit [Read error: Connection reset by peer]
21:55
jwaldrip_ has quit [Ping timeout: 265 seconds]
21:55
unshadow has quit [Ping timeout: 246 seconds]
21:56
havenn has joined #crystal-lang
21:56
jwaldrip__ has quit [Ping timeout: 240 seconds]
21:57
havenwood has quit [Ping timeout: 250 seconds]
22:03
rmosolgo has quit [Remote host closed the connection]
22:09
jwaldrip__ has joined #crystal-lang
22:10
sdogruyol has joined #crystal-lang
22:13
rmosolgo has joined #crystal-lang
22:15
ingsoc has quit [Quit: Leaving.]
22:17
sdogruyol has quit [Ping timeout: 240 seconds]
22:24
qard has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
22:25
<
crystal-gh >
crystal/master d4dd3d2 Ary Borenszweig: Fixed #1666: Catch-all instance variable initialisation doesn't work for struct variables
22:27
<
crystal-gh >
crystal/master dd5bb61 Anton Davydov: Fix typos in type_inference.cr [skip ci]
22:27
<
crystal-gh >
crystal/master b10c134 Jonne Haß: Merge pull request #1672 from davydovanton/doc-fix-type-inference...
22:30
rmosolgo has quit [Remote host closed the connection]
22:30
rmosolgo has joined #crystal-lang
22:42
qard has joined #crystal-lang
22:43
<
crystal-gh >
crystal/master 298ec0d Jonne Haß: Fix typo in type inference spec too
22:47
qard has quit [Client Quit]
22:50
benner has quit [Ping timeout: 252 seconds]
22:51
jbye has quit [Ping timeout: 265 seconds]
22:52
havenn has quit [Ping timeout: 252 seconds]
22:52
benner has joined #crystal-lang
22:52
jbye has joined #crystal-lang
22:53
fowlduck has joined #crystal-lang
23:08
greengriminal has quit [Quit: Leaving]
23:13
havenwood has joined #crystal-lang
23:15
sdogruyol has joined #crystal-lang
23:16
fowlduck has quit [Remote host closed the connection]
23:19
sdogruyol has quit [Ping timeout: 240 seconds]
23:22
havenwood has quit [Ping timeout: 268 seconds]
23:29
nakilon has quit [Ping timeout: 244 seconds]
23:42
lex_ has joined #crystal-lang
23:50
dylanmei has joined #crystal-lang