-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Labels
additionoh, so shiny!oh, so shiny!awaitcan't be done yetcan't be done yetbrrrsuch code, much wowsuch code, much wowmaybeto do, or not to do?to do, or not to do?
Description
I need lots of free-function-y stuff to get things done without tying myself to any particular implementation. But free-function-y stuff is messy. The function signatures get way too long or way too terse. It is difficult to track, and tracking preconditions is worse.
So I've been thinking. I might want integer-view-y stuff instead, so things get neatly encapsulated, preconditions get checked on instantiation, and the type system can help out. I imagine these generic over various collections, but I probably need borrowing and consuming for that. I suppose mutable buffer pointers might do.
withStrictUnsignedInteger(...)
withNormalizedUnsignedInteger(...)
SuccinctUnsignedIntegerView(rebasing: view)
NormalizedUnsignedIntegerView(validating: view)Metadata
Metadata
Assignees
Labels
additionoh, so shiny!oh, so shiny!awaitcan't be done yetcan't be done yetbrrrsuch code, much wowsuch code, much wowmaybeto do, or not to do?to do, or not to do?