-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
additionoh, so shiny!oh, so shiny!brrrsuch code, much wowsuch code, much wowmaybeto do, or not to do?to do, or not to do?subtractionhuh? where did it go?huh? where did it go?
Description
The MutableDataInt<Element>.Body model has many operation pairs similar to this:
extension MutableDataInt.Body {
consuming func increment(..............) -> Fallible<Self>
consuming func incrementSubSequence(...) -> Fallible<Self>
}The *SubSequence operations represent some core algorithm that stops at the end of the given arguments. The non-*SubSequence carries or borrows the error indicator after that point. What if I instead add a carry() and borrow() to Fallible<MutableDataInt.Body>? I believe those two methods would make every non-*SubSequence variant obsolete.
Metadata
Metadata
Assignees
Labels
additionoh, so shiny!oh, so shiny!brrrsuch code, much wowsuch code, much wowmaybeto do, or not to do?to do, or not to do?subtractionhuh? where did it go?huh? where did it go?