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
alxs has joined #ponylang
alxs has quit [Quit: Computer's gone to sleep. ZZZzzz…]
endformationage has joined #ponylang
alxs has joined #ponylang
jmiven has quit [Quit: co'o]
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 [Quit: Computer's gone to sleep. ZZZzzz…]
maarek has joined #ponylang
maarek has quit [Remote host closed the connection]
endformationage has quit [Ping timeout: 240 seconds]
mahmudov has joined #ponylang
mahmudov has quit [Ping timeout: 240 seconds]
mahmudov has joined #ponylang
mahmudov has quit [Remote host closed the connection]
mahmudov has joined #ponylang
palmhead has joined #ponylang
mahmudov has quit [Ping timeout: 264 seconds]
mahmudov has joined #ponylang
<palmhead> he
alehander42 has quit [Quit: Connection closed for inactivity]
<palmhead> hey i am learning pony and i am trying to specify a constructors returnvalue to let variable
<palmhead> it gives an error for me
<vaninwagen> palmhead yo! Glad you found us here! can you show some code on https://playground.ponylang.io ?
<palmhead> There you go!
<vaninwagen> In line 13 you create a Salaries instance, you need to assign this to a variable
<vaninwagen> The construct: Salaries.monthly() is actually expanded to: Salaries.create().monthly() and you have no new create() constructor defined on Salaries
<palmhead> Is create() must have?
<vaninwagen> No, your salaries setup is fine
<vaninwagen> https://playground.ponylang.io/?gist=9b1ddfed2080543fb2872e147dc876c7 i took the freedom to modify it a bit for you
<palmhead> Is it like we kinda save the variables in Salaries that we created with Salaries.add_worker?
<Candle> vaninwagen: I recall some discussion about a 'de-sugar' project, do you recall it going anywhere?
<palmhead> But thanks for the help!
<vaninwagen> Candle: unfortunately i dont
<vaninwagen> palmhead: you save what you pass into the constructor add_worker(...) on the created instance
<vaninwagen> Candle: i can imagine using ponycc for this task
<vaninwagen> Run the program through the parser, syntax and sugar pass and then format the resulting ast into code again
<palmhead> vaninwagen: Ah! Now i understand it and everything seems to be clear now! Thanks!
<palmhead> Haha
_andre has joined #ponylang
endformationage has joined #ponylang
dx_ob has joined #ponylang
mahmudov has quit [Remote host closed the connection]
<_andre> hello
<palmhead> Hi!
<_andre> trying pony again after quite some time
<_andre> i remember it used to have exhaustiveness check of match cases, is that not the case anymore?
<palmhead> I just started learning. I dont know very vell
<SeanTAllen> _andre: there's never been exhaustive match checks. not yet, its something we want to add.
<_andre> oh
<palmhead> O O F
<Candle> There is a "this section can never match" compile error.
<_andre> i thought this PR implemented it https://github.com/ponylang/ponyc/pull/1891
<SeanTAllen> Yes, but its not the default.
<SeanTAllen> So if I define type Foo is (A|B|C) and you have a match that for A,B,C and then you change the type to (A|B|C|D), you aren't going to get a compile error
<SeanTAllen> prior to that PR, there was ALWAYS a else None that got added to match statements as a default if there was no else
<SeanTAllen> I assumed you were meaning exhaustive match as in "if i dont try to match on all possibilities, I will get an error"
<_andre> yeah, that's what i meant. i thought that PR did that and then was later retracted, or there was a bug
alxs_ has joined #ponylang
<SeanTAllen> that's a next step
Nawab has quit [Remote host closed the connection]
alxs_ has quit [Quit: Computer's gone to sleep. ZZZzzz…]
alxs has joined #ponylang
<palmhead> Btw, why user input seems to be made so difficult?
alxs has quit [Quit: Bye y'all!]
acarrico has quit [Ping timeout: 272 seconds]
palmhead has quit [Quit: Leaving]
<SeanTAllen> what do you find difficult palmhead?
dx_ob has quit [Remote host closed the connection]
Nawab has joined #ponylang
endformationage has quit [Ping timeout: 244 seconds]
acarrico has joined #ponylang