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
aturley has quit [Quit: aturley]
aturley has joined #ponylang
aturley_ has joined #ponylang
aturley has quit [Ping timeout: 260 seconds]
aturley_ has quit [Quit: aturley_]
TheNet has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sleeplessy has joined #ponylang
<sleeplessy> hi
<sleeplessy> is it clever to add a param to CommandSpec.add_help() that allow users to modify the default [help] option's information/hint?
<sleeplessy> like this
<sleeplessy> So that i can do CommandSpec.leaf("test","",[],[]).>add_help(where hinfo="Need some sake")
mahmudov has quit [Ping timeout: 240 seconds]
milisarge has quit [Ping timeout: 265 seconds]
patroclos has quit [Ping timeout: 264 seconds]
nisanharamati has quit [Quit: Connection closed for inactivity]
TheNet has joined #ponylang
TheNet has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
milisarge has joined #ponylang
khan has joined #ponylang
endformationage has quit [Quit: WeeChat 1.9.1]
sleeplessy has quit [Quit: WeeChat 1.9.1]
sleeplessy has joined #ponylang
vaninwagen has joined #ponylang
khan has quit [Quit: khan]
khan has joined #ponylang
khan has quit [Quit: khan]
khan has joined #ponylang
vaninwagen has quit [Ping timeout: 240 seconds]
gokr has joined #ponylang
milisarge has quit [Ping timeout: 268 seconds]
milisarge has joined #ponylang
khan has quit [Quit: khan]
milisarge has quit [Ping timeout: 268 seconds]
codec1 has joined #ponylang
codec1 has quit [Ping timeout: 268 seconds]
jemc has quit [Ping timeout: 240 seconds]
Praetonus has joined #ponylang
khan has joined #ponylang
_andre has joined #ponylang
codec1 has joined #ponylang
codec1 has quit [Quit: Leaving.]
mahmudov 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
khan_ has joined #ponylang
milisarge has joined #ponylang
khan has quit [Ping timeout: 240 seconds]
khan_ is now known as khan
Greg__ has joined #ponylang
<Greg__> Hi
<Greg__> I'm learning Pony ATM, going through the tutorial. Quick question: Is multiple traits for a class something possible in pony? Imagine I have two traits Named and Aged, I have tried class Bob is Named is Aged but no luck... Also tried class Bob is Named,Aged and class Bob is Named and Aged, class Bob is (Named & Aged)
aturley has joined #ponylang
aturley_ has joined #ponylang
<Praetonus> Greg__: `class Bob is (Named & Aged)` should work. What compiler error are you getting?
aturley has quit [Ping timeout: 256 seconds]
<Greg__> @Praetonus no complain on that line: class Bob is (Named & Aged) but the compiler complain on let bob = Bob() that it couldn't find 'apply' in 'Bob'. Maybe it is because I don't have a constructor in my class ?
<Praetonus> `Type()` is sugared to `Type.create().apply()`. If you're constructing an object you need to use `Type`, which is sugared to `Type.create()`
<Praetonus> If you don't have any constructor in your class, the compiler will add a default `create` constructor
<Greg__> Ok, `let bob = Bob` did the trick... I'll propose a PR to the tutorial to detail the multiple traits syntax :-) Thanks for your kind help @Praetonus
<Greg__> Just discovered it is also possible to mix traits together... :) like this:
<Greg__> if you have a trait called `Named`, it is possible to declare `trait Aged is Named`. And then, declare `class Bob is Aged`. This last class has methods from both Named and Aged
khan has quit [Quit: khan]
khan has joined #ponylang
khan has quit [Client Quit]
khan has joined #ponylang
jmiven_ is now known as jmiven
endformationage has joined #ponylang
gokr has quit [Ping timeout: 256 seconds]
<Greg__> Out of curiosity, when writing `class Bob is (Named & Aged)`, does `(Named & Aged)` represent an intersection type expression ?
<Praetonus> Yes
dougmacdoug has joined #ponylang
khan has quit [Quit: khan]
khan has joined #ponylang
TheNet has joined #ponylang
TheNet has quit [Client Quit]
khan has quit [Client Quit]
khan has joined #ponylang
TheNet has joined #ponylang
jemc has joined #ponylang
mikeyhew has quit []
mikeyhew has joined #ponylang
gokr has joined #ponylang
Greg__ has quit [Quit: Page closed]
TheNet has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
TheNet has joined #ponylang
gokr has quit [Read error: No route to host]
codec1 has quit [Ping timeout: 240 seconds]
nisanharamati has joined #ponylang
khan has quit [Quit: khan]
khan has joined #ponylang
gokr has joined #ponylang
khan has quit [Client Quit]
khan 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…]
TheNet has joined #ponylang
TheNet has quit [Client Quit]
xllndr has joined #ponylang
mwahl has joined #ponylang
mahmudov has quit [Remote host closed the connection]
TheNet has joined #ponylang
dougmacdoug has quit [Quit: dougmacdoug]
khan has quit [Quit: khan]
khan has joined #ponylang
patroclos has joined #ponylang
khan has quit [Client Quit]
mwahl has quit [Ping timeout: 256 seconds]
khan has joined #ponylang
xllndr has quit [Quit: Leaving]
user10032 has quit [Quit: Leaving]
milisarge has quit [Ping timeout: 248 seconds]
codec1 has quit [Read error: Connection reset by peer]
milisarge has joined #ponylang
TheNet has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
khan has quit [Quit: khan]
khan has joined #ponylang
khan has quit [Client Quit]
khan has joined #ponylang