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
erip has joined #ponylang
<erip> A data class is basically a named tuple
<erip> It typically defines equality, to-string, hash
<erip> I have something like this: `class val User is (Equatable[User] & Comparable[User] & Hashable & Stringable)`, but the body is ~20 lines, which is pretty verbose for something that should just hold data
erip has quit [Remote host closed the connection]
That_Guy_Anon has joined #ponylang
<That_Guy_Anon> hey, i am trying to get to get pony to run on solus, but for some reason it can't find ld
<That_Guy_Anon> now i am not quite sure what exactly it expectes in --linker to guide it to the linker
That_Guy_Anon has quit [Remote host closed the connection]
mahmudov has quit [Remote host closed the connection]
_whitelogger has joined #ponylang
_whitelogger has joined #ponylang
_whitelogger has joined #ponylang
_whitelogger has joined #ponylang
endformationage has quit [Ping timeout: 240 seconds]
ChristianWitts has quit [Ping timeout: 250 seconds]
srenatus has joined #ponylang
_whitelogger has joined #ponylang
srenatus has quit [Quit: Connection closed for inactivity]
endformationage has joined #ponylang
erip has joined #ponylang
<erip> Is there a reason Range's `next` method is total?
<erip> Seems like it should be partial
<strmpnk> It calls has_next internally and then at the end it turns into a constant on each call. It does seem like arbitrary behavior but it does have total behavior.
<vaninwagen> You can override partial methods with total ones, so it extends Iterator although iterator defines next() as being partial
<erip> Yeah, I guess my real question is: why is that behavior the behavior? heh
<erip> honest question. I might have tunnel vision right now
<vaninwagen> You mean, why is it total?
<erip> Indirectly, yes. Why is the behavior to stay at the end of the range when you call next?
<erip> It's as good as anything and forces totality. maybe that's a good enough reason
erip has quit [Quit: Page closed]
<vaninwagen> Yeah, and the iterator protocol demands to call has_next() before each call to next(). If you just call next() without checking, you break the warranty seal
<vaninwagen> next() might call a professional killer to brutally murder an innocent kitten in that case
erip has joined #ponylang
<erip> makes sense
erip has quit [Quit: Page closed]