nisanharamati has quit [Quit: Connection closed for inactivity]
jemc has quit [Ping timeout: 260 seconds]
jemc has joined #ponylang
gokr has quit [Quit: Leaving.]
jemc has quit [Ping timeout: 264 seconds]
jemc has joined #ponylang
jemc has quit [Ping timeout: 256 seconds]
jemc has joined #ponylang
jemc has quit [Ping timeout: 268 seconds]
gokr has joined #ponylang
khan has joined #ponylang
khan has quit [Client Quit]
khan has joined #ponylang
dipin has quit [Quit: dipin]
vaninwagen has joined #ponylang
hardliner66 has joined #ponylang
khan has quit [Quit: khan]
codec1 has joined #ponylang
mahmudov has quit [Remote host closed the connection]
mahmudov has joined #ponylang
ficl has joined #ponylang
khan_ has joined #ponylang
_andre has joined #ponylang
codec1 has quit [Quit: Leaving.]
codec1 has joined #ponylang
codec1 has quit [Quit: Leaving.]
vaninwagen has quit [Ping timeout: 268 seconds]
vaninwagen has joined #ponylang
gokr has quit [Ping timeout: 264 seconds]
gokr1 has joined #ponylang
codec1 has joined #ponylang
codec1 has quit [Client Quit]
codec1 has joined #ponylang
codec1 has quit [Quit: Leaving.]
jemc has joined #ponylang
vaninwagen has quit [Ping timeout: 264 seconds]
dipin has joined #ponylang
dipin has quit [Client Quit]
codec1 has joined #ponylang
codec1 has quit [Client Quit]
codec1 has joined #ponylang
khan_ has quit [Quit: khan_]
khan has joined #ponylang
TheNet has joined #ponylang
dougmacdoug has joined #ponylang
Pyrrh has joined #ponylang
gokr1 has quit [Ping timeout: 255 seconds]
khan has quit [Quit: khan]
khan has joined #ponylang
codec1 has quit [Read error: Connection reset by peer]
khan has quit [Remote host closed the connection]
TheNet has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
TheNet has joined #ponylang
<dougmacdoug>
quick ? what are the default capabilities when I dont type any for methods on classes and then arguments when an arg is a class
<dougmacdoug>
fun ?a? method(a : MyClass ?b?) (a=??? b=???)
khan has joined #ponylang
<SeanTAllen>
fun box method
<SeanTAllen>
the others depend on the class
<SeanTAllen>
by default it is ref
<SeanTAllen>
but if i do
<SeanTAllen>
class val Foo
<SeanTAllen>
when defining it then the default capability is val
mahmudov has quit [Ping timeout: 256 seconds]
hardliner66 has quit [Quit: Going offline, see ya! (www.adiirc.com)]
gokr has joined #ponylang
codec1 has joined #ponylang
gokr has quit [Ping timeout: 260 seconds]
mson has joined #ponylang
codec1 has quit [Read error: Connection reset by peer]
<dougmacdoug>
if I do fun method(a: MyClass val) does that mean I can only receive instances that are already val, or does that simply mean, inside this method I am only going to read so I only need a read handle to the instance
ficl has quit [Ping timeout: 268 seconds]
<SeanTAllen>
it has to be a val.
<SeanTAllen>
you can't accept `refs`
<SeanTAllen>
if you want to accept ref and val, that's what box is for.
nisanharamati has joined #ponylang
khan has quit [Quit: khan]
khan has joined #ponylang
khan has quit [Client Quit]
khan has joined #ponylang
Sargun has quit [Ping timeout: 248 seconds]
Sargun has joined #ponylang
user10032 has joined #ponylang
codec1 has joined #ponylang
khan has quit [Quit: khan]
khan has joined #ponylang
khan has quit [Client Quit]
khan has joined #ponylang
TheNet has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<dougmacdoug>
is there a standard for docstrings to document arguments to methods and returns (ie javadoc @return @param)
TheNet has joined #ponylang
_andre has quit [Quit: leaving]
xllndr has joined #ponylang
khan has quit [Quit: khan]
khan has joined #ponylang
khan has quit [Client Quit]
khan has joined #ponylang
mson has quit [Quit: Connection closed for inactivity]
acarrico has quit [Ping timeout: 246 seconds]
mahmudov has joined #ponylang
<jemc>
dougmacdoug: no, there's currently not a standard for a parseable format
<dougmacdoug>
ok, thx
nisanharamati has quit []
khan has quit [Quit: khan]
khan has joined #ponylang
khan has quit [Client Quit]
khan has joined #ponylang
khan has quit [Quit: khan]
khan has joined #ponylang
khan has quit [Client Quit]
khan has joined #ponylang
codec1 has quit [Read error: Connection reset by peer]
<SeanTAllen>
I used the `trn` reference capability which allows me to have a mutable thing that i can consume to a val. Its rare I would want to have that, but its basically the same as the first example, just slightly different approach.
<dougmacdoug>
ok.. i think the 2nd one is exactly what i was looking for.. i had tried recover and consume a few ways earlier but I had bumbled a couple places it seems..
<dougmacdoug>
awesome! thanks!
<SeanTAllen>
recover is often much more powerful than `trn` i almost never use transition
<SeanTAllen>
also, sometimes you dont need to copy...