-
Notifications
You must be signed in to change notification settings - Fork 282
Open
Labels
iroha2-devThe re-implementation of a BFT hyperledger in RUSTThe re-implementation of a BFT hyperledger in RUST
Description
I would prefer config to have private fields with constructors and getters for the following reasons:
- consistency - access to some fields has to be done through getters because the value has to be converted
- maintaining invariants - sometimes config params are interdependent,
- future proofing - we can change the underlying type without affecting the API
setters we can but don't even have to have. I wouldn't mind if the config structs were completely immutable. If we do decide to have setters we can put validation logic into them. But I would prefer to not have setters at least atm
Reactions are currently unavailable
Metadata
Metadata
Labels
iroha2-devThe re-implementation of a BFT hyperledger in RUSTThe re-implementation of a BFT hyperledger in RUST
Type
Projects
Status
Backlog