00:05
gokr has quit [Ping timeout: 248 seconds]
00:26
<
Candle >
There appears to be no public trait that has shl and shr; just the types themselves and the type aliases.
00:45
acarrico has joined #ponylang
00:51
<
jemc >
Candle: I'm not sure why they aren't part of the `Integer` trait - it seems like they should be
00:51
<
jemc >
can you file an issue ticket or PR for that, and we can see if anyone else knows the reason why it's not already included?
01:07
<
SeanTAllen >
jemc: seems like an oversight. maybe im missing something
01:09
jemc has quit [Ping timeout: 240 seconds]
01:21
jemc has joined #ponylang
03:04
mollymorphic has quit [Ping timeout: 248 seconds]
03:05
mollymorphic has joined #ponylang
03:50
mollymorphic has quit [Quit: leaving]
04:21
mollymorphic has joined #ponylang
05:08
jemc has quit [Ping timeout: 248 seconds]
05:16
jemc has joined #ponylang
05:25
mollymorphic has quit [Quit: leaving]
07:22
jemc has quit [Ping timeout: 248 seconds]
07:56
codec1 has joined #ponylang
08:04
gokr has joined #ponylang
08:48
vaninwagen has joined #ponylang
08:49
vaninwagen has quit [Remote host closed the connection]
08:50
bimawa2 has quit [Ping timeout: 240 seconds]
08:51
bimawa2 has joined #ponylang
09:09
SirRolin has joined #ponylang
09:37
beaumonta has joined #ponylang
09:39
abeaumont has quit [Ping timeout: 240 seconds]
09:39
irx[m] has quit [Ping timeout: 240 seconds]
09:39
dtz has quit [Ping timeout: 240 seconds]
09:40
Praetonus has joined #ponylang
09:42
beaumonta has quit [Ping timeout: 240 seconds]
09:44
vaninwagen has joined #ponylang
09:45
irx[m] has joined #ponylang
09:46
dtz has joined #ponylang
09:49
abeaumont has joined #ponylang
10:08
lalomartins[m]1 has joined #ponylang
10:09
strmpnk has quit [*.net *.split]
10:10
lalomartins[m] has quit [*.net *.split]
10:13
samuell has joined #ponylang
10:15
strmpnk has joined #ponylang
10:27
_andre has joined #ponylang
11:06
mindB has quit [Ping timeout: 255 seconds]
11:13
lalomartins[m]1 has quit [Ping timeout: 246 seconds]
11:13
irx[m] has quit [Ping timeout: 246 seconds]
11:13
srenatus has quit [Ping timeout: 246 seconds]
11:14
ada[m] has quit [Ping timeout: 252 seconds]
11:14
M-hrjet has quit [Ping timeout: 252 seconds]
11:14
ehooper[m] has quit [Ping timeout: 248 seconds]
11:14
dtz has quit [Ping timeout: 246 seconds]
11:56
Praetonus has quit [Ping timeout: 248 seconds]
12:09
Praetonus has joined #ponylang
12:28
irx[m] has joined #ponylang
12:30
SirRolin_ has joined #ponylang
12:30
SirRolin has quit [Ping timeout: 260 seconds]
12:34
SirRolin_ has quit [Client Quit]
12:35
SirRolin has joined #ponylang
12:44
inara has quit [Quit: Leaving]
12:45
vaninwagen has quit [Ping timeout: 248 seconds]
12:46
inara has joined #ponylang
12:49
alxs has joined #ponylang
12:52
ada[m] has joined #ponylang
12:52
dtz has joined #ponylang
12:52
mindB has joined #ponylang
12:52
srenatus has joined #ponylang
12:52
M-hrjet has joined #ponylang
12:52
lalomartins[m] has joined #ponylang
12:52
ehooper[m] has joined #ponylang
13:08
SM6YWY has joined #ponylang
13:08
SM6YWY has left #ponylang ["Hejdå"]
13:12
verborum_facere has joined #ponylang
13:19
<
verborum_facere >
How do I convert an integer to string?
13:28
<
codec1 >
use .string()
13:35
<
verborum_facere >
Tnx!
13:35
verborum_facere has quit [Quit: verborum_facere]
13:43
alxs has quit [Quit: Computer's gone to sleep. ZZZzzz…]
13:50
alxs has joined #ponylang
13:54
alxs has quit [Client Quit]
14:00
alxs has joined #ponylang
14:12
alxs has quit [Quit: Computer's gone to sleep. ZZZzzz…]
14:14
alxs has joined #ponylang
14:19
alxs has quit [Client Quit]
14:29
alxs has joined #ponylang
14:32
SirRolin has quit [Ping timeout: 260 seconds]
14:35
samuell has quit [Remote host closed the connection]
14:35
alxs has quit [Quit: Computer's gone to sleep. ZZZzzz…]
14:35
samuell has joined #ponylang
14:40
alxs has joined #ponylang
14:47
alxs has quit [Quit: Computer's gone to sleep. ZZZzzz…]
15:01
alxs has joined #ponylang
15:01
alxs has quit [Client Quit]
15:10
endformationage has joined #ponylang
15:17
dougmacdoug has joined #ponylang
15:17
dougmacdoug has left #ponylang [#ponylang]
15:35
samuell has quit [Remote host closed the connection]
16:37
codec1 has quit [Read error: Connection reset by peer]
16:38
codec1 has joined #ponylang
16:44
jemc has joined #ponylang
16:58
moony has joined #ponylang
16:59
<
moony >
Couldn't find the docs for it anywhere, but its nice to see Pony supports binary literals, like 0b0101
17:02
<
codec1 >
best way to know is to try it out
17:20
<
moony >
So, i've covered all possible edge cases with try blocks, and from what i can tell, the constructor should always initalize the class, even if with 'dead' values. But the compiler seems to think i forgot a edge case, and i cant find it. Any help?
https://hastebin.com/vibituvoqe.erl
17:29
<
codec1 >
don't know enough about that to answer you
17:30
<
moony >
mk. Thanks. that
*is* odd.
17:31
<
codec1 >
actually you can get rid of the else clause too
17:32
<
moony >
Yea i noticed first thing
17:33
samuell has joined #ponylang
17:41
<
jemc >
moony: can you clarify what you're asking about with that paste?
17:41
<
jemc >
I can probably help if I understand your question
17:42
<
moony >
jemc, it doesn't compile, but it appears that it should. It's failing to compile because it says i don't initalize some variables, but the way the code is written, those variables will ALWAYS be initalized. The compiler just doesn't seem to recognize it.
17:44
<
codec1 >
or you can also do it by affecting the content of the try block too
17:46
user10032 has joined #ponylang
17:52
<
jemc >
I'd suggest uing one of codec1's variations, or writing a variation where the `try` and `else` both return a tuple containing all the values as an expression, so you can capture them into the fields just outside the try block
17:53
<
jemc >
something like: `(name, id, passability, liquid) = try ... else ("invalid", "invalid", 0, true) end`
17:53
<
codec1 >
of if you can get it rid of the jsondoc it will be easier too
17:54
<
codec1 >
*or. Because it seems that if you remove it and you pas directy a JsonObject you can shorten the code too
18:14
verborum_facere has joined #ponylang
18:37
verborum_facere has quit [Quit: Leaving]
18:43
alxs has joined #ponylang
18:44
alxs has quit [Client Quit]
18:51
alxs has joined #ponylang
18:52
gokr has quit [Ping timeout: 248 seconds]
18:57
alxs has quit [Quit: Computer's gone to sleep. ZZZzzz…]
19:07
nisanharamati has joined #ponylang
19:22
user10032 has quit [Ping timeout: 264 seconds]
19:29
alxs has joined #ponylang
19:34
user10032 has joined #ponylang
19:35
gokr has joined #ponylang
19:42
moony has quit [Remote host closed the connection]
19:43
moony has joined #ponylang
19:44
moony has quit [Client Quit]
19:52
xllndr has joined #ponylang
19:57
gokr has quit [Ping timeout: 248 seconds]
19:59
user10032 has quit [Quit: Leaving]
20:01
user10032 has joined #ponylang
20:08
_andre has quit [Quit: leaving]
20:24
gokr has joined #ponylang
20:34
gokr has quit [Ping timeout: 255 seconds]
20:47
user10032 has quit [Quit: Leaving]
20:53
xllndr has quit [Quit: Leaving]
21:20
alxs has quit [Quit: Computer's gone to sleep. ZZZzzz…]
22:04
samuell has quit [Remote host closed the connection]
22:06
Praetonus has quit [Quit: Leaving]
22:08
gokr has joined #ponylang
22:12
jemc has quit [Ping timeout: 240 seconds]
22:20
jemc has joined #ponylang
23:01
gokr has quit [Ping timeout: 268 seconds]
23:52
codec1 has quit [Read error: Connection reset by peer]