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
atk has quit [Quit: Well this is unexpected.]
atk has joined #ponylang
chemist69 has quit [Ping timeout: 255 seconds]
chemist69 has joined #ponylang
gmcabrita has quit [Quit: Connection closed for inactivity]
endformationage has quit [Quit: WeeChat 1.7]
_whitelogger has joined #ponylang
papey_lap has joined #ponylang
papey_lap has quit [Client Quit]
papey_lap has joined #ponylang
papey_lap has quit [Quit: WeeChat 1.7.1]
papey_lap has joined #ponylang
vaninwagen has joined #ponylang
obadz has quit [Ping timeout: 260 seconds]
obadz has joined #ponylang
Fluttershy_ has joined #ponylang
Fluttershy_ has quit [Client Quit]
gmcabrita has joined #ponylang
virtual_lark has joined #ponylang
_andre has joined #ponylang
Hierophantos has joined #ponylang
<Hierophantos> Semantic Models for Distributed Object Reflection
endformationage has joined #ponylang
graaff has joined #ponylang
gmcabrita has quit [Quit: Connection closed for inactivity]
vaninwagen has quit [Ping timeout: 260 seconds]
jemc has joined #ponylang
amclain has joined #ponylang
gmcabrita has joined #ponylang
jemc has quit [Ping timeout: 268 seconds]
jemc has joined #ponylang
Hierophantos has quit [Read error: Connection reset by peer]
Matthias247 has joined #ponylang
vaninwagen has joined #ponylang
aav has quit []
papey_lap has quit [Ping timeout: 260 seconds]
jemc has quit [Read error: Connection reset by peer]
<vaninwagen> hi! could someone help me with a tiny type related problem? it is here: https://is.gd/EyN0ZL
<vaninwagen> i have a method with some type parameter, a union type. i iterate over an array of possible instances of this union and want to call this method with the type of its argument as the type parameter
<vaninwagen> is this possible?
<vaninwagen> or should i approach this problem differently?
<SeanTAllen> im not sure what you are trying to do.
<SeanTAllen> i believe what you want to do is match on the type of `v` and call the correct doer
jemc has joined #ponylang
<SeanTAllen> there's no way for the compiler based on your types to know how to call line 26
<SeanTAllen> are you trying to do some sort of dynamic dispatch vaninwagen?
<vaninwagen> yeah, kinda
<vaninwagen> SeanTAllen yes i want to match on type of v and call the correct doer which is also parameterized by type of v
<vaninwagen> SeanTAllen, yeah seems like it
<vaninwagen> i did it this way (in this simplified example) because i was doing some stuff in between finding the right Doer and doStuff with it, that i didn't want to repeat. but yeah, once i have the right Doer he can do specialized stuff
<vaninwagen> sry, i am kinda still stuck with how java generics work
<SeanTAllen> we all are always learning vaninwagen. no worries.
<vaninwagen> another thing: https://github.com/ponylang/ponyc/pull/1840 will this somehow lead to having a tool for property based testing of pony code? :))))) or is this at the compiler level?
<vaninwagen> SeanTAllen found a solution that works for me: https://is.gd/Gj1htF thanks for the hint :)
_andre has quit [Quit: leaving]
aav has joined #ponylang
<vaninwagen> sorry to bother you again: i am getting a core dump here https://is.gd/y3U4mA
vaninwagen has quit [Ping timeout: 240 seconds]
aav has quit []
Matthias247 has quit [Read error: Connection reset by peer]
<SeanTAllen> vaninwagen: in case you read the logs. i opened an issue for your compiler error.