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
khan has joined #ponylang
brainproxy has quit [Ping timeout: 276 seconds]
khan has quit [Read error: Connection reset by peer]
brainproxy has joined #ponylang
khan has joined #ponylang
tme11 has quit [Read error: Connection reset by peer]
endformationage has quit [Quit: WeeChat 1.9.1]
khan has quit [Ping timeout: 268 seconds]
Amun_Ra has quit [Ping timeout: 244 seconds]
Amun_Ra has joined #ponylang
khan has joined #ponylang
endformationage has joined #ponylang
superherointj has joined #ponylang
<superherointj> Is Pony language "object oriented" as in Alan Kay meaning (messages) or Java style?
<superherointj> Is Pony language "object oriented" as in Alan Kay meaning (messages) or Java style?
<SeanTAllen> superherointj: how do you define "java style"?
<superherointj> As used in Java programming language.
<SeanTAllen> sorry that doesnt really help.
<SeanTAllen> there's an awful lot could mean by that.
<SeanTAllen> Pony is not Java, that is the best that I can say from that.
<SeanTAllen> Does Pony share some things in common with Java? You can say yes to that.
<SeanTAllen> It is also dissimiliar in many ways.
superherointj has quit [Remote host closed the connection]
superherointj has joined #ponylang
superher_ has joined #ponylang
superherointj has quit [Ping timeout: 256 seconds]
superher_ has quit []
Kaveren has joined #ponylang
tme11 has joined #ponylang
khan has quit [Quit: khan]
inoas has joined #ponylang
inoas has quit [Ping timeout: 244 seconds]
xek_ has joined #ponylang
xek__ has quit [Ping timeout: 264 seconds]
xek has joined #ponylang
xek_ has quit [Ping timeout: 256 seconds]
xek_ has joined #ponylang
xek has quit [Ping timeout: 256 seconds]
_andre has quit [Quit: leaving]
Kaveren has quit [Ping timeout: 252 seconds]
Shorttail has joined #ponylang
<Shorttail> Is there something like finally from java in pony?
<Shorttail> I tried using try else then, but with a return the then block is never executed
<Shorttail> I need it, or something else, for database code, making sure things always get rolled back
<SeanTAllen> Shorttail: at this time, with try/else, no. although i think there is an rfc that discusses adding
<SeanTAllen> and how that might work with `with`
<SeanTAllen> actually what
<SeanTAllen> sorry
<SeanTAllen> o
<SeanTAllen> so your problem is that you are returing from the then
<SeanTAllen> ah
<SeanTAllen> ok
<SeanTAllen> why are you returning from the try/else Shorttail ?
<SeanTAllen> can you present a simplied version of your in a playground?
<SeanTAllen> Shorttail: also `with` might work for what you need. not sure.
<Shorttail> I run small query, find that whatever the main quiry is going to do is impossible, and return early. The early return bypasses the entire then block, meaning I need to manually roll back for every early return
<Shorttail> Where's with explained?
<SeanTAllen> half way down
<Shorttail> Right above it it says the then block is always executed, even if the try returns
<SeanTAllen> indeed it does
<SeanTAllen> sounds like a bug
<Shorttail> I thought I was crazy
<SeanTAllen> bah
<SeanTAllen> nah
<Shorttail> Do you want me to report it on github?
<SeanTAllen> yes please
<SeanTAllen> with a minimal example if you can
<Shorttail> The bug only shows up with nested trys
<SeanTAllen> thanks
Shorttail has quit [Quit: Page closed]