jemc changed the topic of #ponylang to: Welcome! Please check out our Code of Conduct => https://github.com/ponylang/ponyc/blob/master/CODE_OF_CONDUCT.md | Public IRC logs are available => http://irclog.whitequark.org/ponylang | Please consider participating in our mailing lists => https://pony.groups.io/g/pony
gokr has quit [Ping timeout: 248 seconds]
<Candle> Ok, so I cheated and added a custom interface that has the shl and shr functions. http://playground.ponylang.org/?gist=12672a78e92159556ac6ac5e9635a53f Feels ugly though.
<Candle> There appears to be no public trait that has shl and shr; just the types themselves and the type aliases.
acarrico has joined #ponylang
<jemc> Candle: I'm not sure why they aren't part of the `Integer` trait - it seems like they should be
<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?
<SeanTAllen> jemc: seems like an oversight. maybe im missing something
jemc has quit [Ping timeout: 240 seconds]
jemc has joined #ponylang
mollymorphic has quit [Ping timeout: 248 seconds]
mollymorphic has joined #ponylang
mollymorphic has quit [Quit: leaving]
mollymorphic has joined #ponylang
jemc has quit [Ping timeout: 248 seconds]
jemc has joined #ponylang
mollymorphic has quit [Quit: leaving]
jemc has quit [Ping timeout: 248 seconds]
codec1 has joined #ponylang
gokr has joined #ponylang
vaninwagen has joined #ponylang
vaninwagen has quit [Remote host closed the connection]
bimawa2 has quit [Ping timeout: 240 seconds]
bimawa2 has joined #ponylang
<Candle> Sure.
SirRolin has joined #ponylang
beaumonta has joined #ponylang
abeaumont has quit [Ping timeout: 240 seconds]
irx[m] has quit [Ping timeout: 240 seconds]
dtz has quit [Ping timeout: 240 seconds]
Praetonus has joined #ponylang
beaumonta has quit [Ping timeout: 240 seconds]
vaninwagen has joined #ponylang
irx[m] has joined #ponylang
dtz has joined #ponylang
abeaumont has joined #ponylang
lalomartins[m]1 has joined #ponylang
strmpnk has quit [*.net *.split]
lalomartins[m] has quit [*.net *.split]
samuell has joined #ponylang
strmpnk has joined #ponylang
_andre has joined #ponylang
mindB has quit [Ping timeout: 255 seconds]
lalomartins[m]1 has quit [Ping timeout: 246 seconds]
irx[m] has quit [Ping timeout: 246 seconds]
srenatus has quit [Ping timeout: 246 seconds]
ada[m] has quit [Ping timeout: 252 seconds]
M-hrjet has quit [Ping timeout: 252 seconds]
ehooper[m] has quit [Ping timeout: 248 seconds]
dtz has quit [Ping timeout: 246 seconds]
Praetonus has quit [Ping timeout: 248 seconds]
Praetonus has joined #ponylang
irx[m] has joined #ponylang
SirRolin_ has joined #ponylang
SirRolin has quit [Ping timeout: 260 seconds]
SirRolin_ has quit [Client Quit]
SirRolin has joined #ponylang
inara has quit [Quit: Leaving]
vaninwagen has quit [Ping timeout: 248 seconds]
inara has joined #ponylang
alxs has joined #ponylang
ada[m] has joined #ponylang
dtz has joined #ponylang
mindB has joined #ponylang
srenatus has joined #ponylang
M-hrjet has joined #ponylang
lalomartins[m] has joined #ponylang
ehooper[m] has joined #ponylang
SM6YWY has joined #ponylang
SM6YWY has left #ponylang ["Hejdå"]
verborum_facere has joined #ponylang
<verborum_facere> How do I convert an integer to string?
<codec1> use .string()
<verborum_facere> Tnx!
verborum_facere has quit [Quit: verborum_facere]
alxs has quit [Quit: Computer's gone to sleep. ZZZzzz…]
alxs has joined #ponylang
<Candle> https://twitter.com/rvedotrc/status/936231143413870592 co-worker is playing with the subtitle data feeds!
alxs has quit [Client Quit]
alxs has joined #ponylang
alxs has quit [Quit: Computer's gone to sleep. ZZZzzz…]
alxs has joined #ponylang
alxs has quit [Client Quit]
alxs has joined #ponylang
SirRolin has quit [Ping timeout: 260 seconds]
samuell has quit [Remote host closed the connection]
alxs has quit [Quit: Computer's gone to sleep. ZZZzzz…]
samuell has joined #ponylang
alxs has joined #ponylang
alxs has quit [Quit: Computer's gone to sleep. ZZZzzz…]
alxs has joined #ponylang
alxs has quit [Client Quit]
endformationage has joined #ponylang
dougmacdoug has joined #ponylang
dougmacdoug has left #ponylang [#ponylang]
samuell has quit [Remote host closed the connection]
codec1 has quit [Read error: Connection reset by peer]
codec1 has joined #ponylang
jemc has joined #ponylang
moony has joined #ponylang
<moony> Couldn't find the docs for it anywhere, but its nice to see Pony supports binary literals, like 0b0101
<codec1> best way to know is to try it out
<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
<codec1> don't know enough about that to answer you
<moony> mk. Thanks. that *is* odd.
<codec1> actually you can get rid of the else clause too
<moony> Yea i noticed first thing
samuell has joined #ponylang
<jemc> moony: can you clarify what you're asking about with that paste?
<jemc> I can probably help if I understand your question
<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.
<codec1> or you can also do it by affecting the content of the try block too
user10032 has joined #ponylang
<jemc> ah, yes, this is a known limitation of the compiler's current intelligence - here's the ticket: https://github.com/ponylang/ponyc/issues/1674
<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
<jemc> something like: `(name, id, passability, liquid) = try ... else ("invalid", "invalid", 0, true) end`
<codec1> of if you can get it rid of the jsondoc it will be easier too
<codec1> *or. Because it seems that if you remove it and you pas directy a JsonObject you can shorten the code too
verborum_facere has joined #ponylang
verborum_facere has quit [Quit: Leaving]
alxs has joined #ponylang
alxs has quit [Client Quit]
alxs has joined #ponylang
gokr has quit [Ping timeout: 248 seconds]
alxs has quit [Quit: Computer's gone to sleep. ZZZzzz…]
nisanharamati has joined #ponylang
user10032 has quit [Ping timeout: 264 seconds]
alxs has joined #ponylang
user10032 has joined #ponylang
gokr has joined #ponylang
moony has quit [Remote host closed the connection]
moony has joined #ponylang
moony has quit [Client Quit]
xllndr has joined #ponylang
gokr has quit [Ping timeout: 248 seconds]
user10032 has quit [Quit: Leaving]
user10032 has joined #ponylang
_andre has quit [Quit: leaving]
gokr has joined #ponylang
gokr has quit [Ping timeout: 255 seconds]
user10032 has quit [Quit: Leaving]
xllndr has quit [Quit: Leaving]
alxs has quit [Quit: Computer's gone to sleep. ZZZzzz…]
samuell has quit [Remote host closed the connection]
Praetonus has quit [Quit: Leaving]
gokr has joined #ponylang
jemc has quit [Ping timeout: 240 seconds]
jemc has joined #ponylang
gokr has quit [Ping timeout: 268 seconds]
codec1 has quit [Read error: Connection reset by peer]