Type Parameter Revamp / Simplification
azriel91 opened this issue · 0 comments
azriel91 commented
Related to #161, we should consider simplifying the type parameters in CmdCtx
, CmdCtxBuilder
, Flow
, etcetera.
Candidates for simplification:
- number
- naming / splitting, e.g.
AppError
vsFrameworkError
- bounds
Candidates
- An exploratory method for simplification is use one type parameter, with multiple associated types, and each associated type has different bounds.
- We might not want
O
as a type parameter, and instead hold aBox<dyn OutputWrite>
that delegates to a list ofOutputWrite
s for writing output to screen and logging.