<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?
<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