00:01
jemc has quit [Ping timeout: 240 seconds]
00:51
Praetonus has quit [Quit: Leaving]
01:35
Perelandric has quit [Ping timeout: 250 seconds]
02:07
runehog_ has quit []
02:10
runehog has joined #ponylang
02:33
c355e3b has quit [Quit: Connection closed for inactivity]
02:45
runehog has quit []
02:48
jemc has joined #ponylang
03:23
killerswan has joined #ponylang
03:23
killerswan has left #ponylang [#ponylang]
03:23
killerswan has joined #ponylang
03:45
killerswan has quit [Quit: killerswan]
04:14
killerswan has joined #ponylang
06:28
aturley has quit [Ping timeout: 264 seconds]
06:31
aturley has joined #ponylang
06:44
rurban has joined #ponylang
06:49
omarkj has quit [Ping timeout: 250 seconds]
06:49
gornikm has quit [Ping timeout: 250 seconds]
06:52
gornikm has joined #ponylang
06:52
omarkj has joined #ponylang
07:13
rurban has left #ponylang [#ponylang]
07:25
rurban1 has joined #ponylang
07:28
rurban2 has joined #ponylang
07:31
rurban1 has quit [Ping timeout: 265 seconds]
07:44
rurban2 has left #ponylang [#ponylang]
07:46
jemc has quit [Ping timeout: 260 seconds]
08:32
trapped has joined #ponylang
09:02
Praetonus has joined #ponylang
09:29
rurban has joined #ponylang
09:30
rurban has left #ponylang [#ponylang]
09:48
killerswan has quit [Quit: killerswan]
10:20
gsteed has joined #ponylang
10:24
rurban1 has joined #ponylang
10:26
killerswan has joined #ponylang
10:26
killerswan has quit [Client Quit]
10:27
killerswan has joined #ponylang
10:38
rurban1 has left #ponylang [#ponylang]
11:06
c355e3b has joined #ponylang
11:52
trapped_ has joined #ponylang
11:54
Perelandric has joined #ponylang
11:55
trapped has quit [Ping timeout: 258 seconds]
12:17
killerswan has quit [Quit: killerswan]
13:08
trapped_ has quit [Read error: Connection reset by peer]
13:59
tm-exa has joined #ponylang
14:12
rurban has joined #ponylang
14:26
aturley has quit [Ping timeout: 258 seconds]
14:26
rurban has quit [Quit: Leaving.]
14:29
tm-exa has quit [Quit: Computer has gone to sleep]
14:31
aturley has joined #ponylang
14:32
SilverKey has joined #ponylang
14:40
SilverKey has quit [Quit: Halted.]
14:42
SilverKey has joined #ponylang
15:02
SilverKey has quit [Quit: Halted.]
15:05
jemc has joined #ponylang
15:11
rurban has joined #ponylang
15:13
SilverKey has joined #ponylang
15:25
rurban has quit [Quit: Leaving.]
15:31
aturley has quit [Ping timeout: 265 seconds]
15:43
theodus has joined #ponylang
15:55
theodus has quit [Remote host closed the connection]
15:57
aturley has joined #ponylang
16:04
graaff has joined #ponylang
16:06
SilverKey has quit [Quit: Halted.]
16:24
SilverKey has joined #ponylang
16:26
theodus has joined #ponylang
16:43
zaquest has quit [Quit: Leaving]
16:49
theodus has quit []
16:53
SilverKey has quit [Quit: Halted.]
16:54
SilverKey has joined #ponylang
16:57
SilverKey has quit [Client Quit]
17:15
aturley has quit [Ping timeout: 276 seconds]
17:17
graaff has quit [Quit: Leaving]
17:21
tm-exa has joined #ponylang
17:22
tm-exa has quit [Client Quit]
17:23
SilverKey has joined #ponylang
17:28
rurban has joined #ponylang
17:30
emancu has joined #ponylang
17:50
tm-exa has joined #ponylang
17:52
tm-exa has quit [Client Quit]
18:45
rurban1 has joined #ponylang
18:47
aturley has joined #ponylang
18:50
rurban has quit [Ping timeout: 276 seconds]
18:50
rurban1 has left #ponylang [#ponylang]
18:51
aturley has quit [Ping timeout: 244 seconds]
18:52
aturley has joined #ponylang
18:54
rurban has joined #ponylang
18:54
rurban has quit [Client Quit]
18:57
aturley has quit [Ping timeout: 264 seconds]
19:10
aturley has joined #ponylang
19:13
SilverKey has quit [Quit: Halted.]
19:21
SilverKey has joined #ponylang
19:24
unbalancedparen has joined #ponylang
19:24
SilverKey has quit [Client Quit]
19:25
SilverKey has joined #ponylang
19:32
Matthias247 has joined #ponylang
19:50
killerswan has joined #ponylang
20:23
SilverKey has quit [Quit: Halted.]
20:44
killerswan has quit [Quit: killerswan]
20:45
killerswan has joined #ponylang
21:03
michael_campbell has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
21:05
killerswan has quit [Quit: killerswan]
21:12
jemc has quit [Ping timeout: 260 seconds]
21:20
hibnico has joined #ponylang
21:20
hibnico has quit [Client Quit]
21:25
SilverKey has joined #ponylang
21:32
SilverKey has quit [Quit: Halted.]
21:35
SilverKey has joined #ponylang
21:47
aturley has quit [Ping timeout: 265 seconds]
21:53
michael_campbell has joined #ponylang
22:03
<
Perelandric >
If I have an `var a: Array[Foo | Bar]` where `Foo` and `Bar` are primitives...
22:03
<
Perelandric >
should it be possible to assign an array literal?
22:04
<
Perelandric >
Like: `var a: Array[(Foo | Bar)] = [Foo, Foo]`
22:04
<
Perelandric >
Because it sees the Array literal as `Array[Foo]` when I try it.
22:05
<
Perelandric >
"Array[Foo val] ref has different type arguments than Array[(Foo val | Bar val)] ref"
22:07
Matthias247 has quit [Read error: Connection reset by peer]
22:12
<
Praetonus >
Perelandric: You can explicitly specify the element type of your array literal: `[as (Foo | Bar): Foo, Foo]`
22:20
<
Perelandric >
Thank you, Praetonus. That's what I was missing!
22:38
SilverKey has quit [Quit: Halted.]
22:38
killerswan has joined #ponylang
22:47
<
Perelandric >
Given: `type Foobar is ((Foo, USize) | (Bar, USize))` where `Foo` and `Bar` are still primitives.
22:47
<
Perelandric >
An assignment succeeds: `var test: Foobar = (Foo, USize(2))` ...
22:48
<
Perelandric >
But attempting to read from the tuple fails: `Debug(test._2.string())`
22:48
<
Perelandric >
"Error: can't lookup by name on a tuple" ... "Error: couldn't find _2 in (Foo val, USize val)"
22:49
<
Perelandric >
Seem like a bug? Or am I abusing the type system a little too much?
22:57
<
Praetonus >
Perelandric: I think what you're trying to do is impossible, but the compiler is giving you a really unhelpful error message. The thing with union types is that you can't access a field directly even if it exists in every member of the union, because the field layout of the members may differ
22:58
<
Praetonus >
Could you open an issue for that?
22:59
<
Perelandric >
That makes sense. I would need to use a `match` in any other situation, so here too.
22:59
<
Perelandric >
Yes, I'll open an issue in a little bit. Thanks again!
23:02
killerswan has quit [Quit: killerswan]
23:13
unbalancedparen has quit [Quit: WeeChat 1.5]
23:15
Praetonus has quit [Quit: Leaving]
23:27
unbalancedparen has joined #ponylang
23:28
aturley has joined #ponylang
23:30
bb010g has quit [Quit: Connection closed for inactivity]
23:30
unbalancedparen has quit [Client Quit]
23:33
aturley has quit [Ping timeout: 276 seconds]