4 ms·
Why isn't "the collection of input parameters to this function" a concept in my program? I understand it's applicable scope is smaller than a e.g. DTO, but does
by preseinger 5y ago
Why isn't "the collection of input parameters to this function" a concept in my program? I understand it's applicable scope is smaller than a e.g. DTO, but does that matter categorically?
- nauticacom 5y agoI suppose it could be, but imo it starts diluting the value of domain modeling if everything is given the same weight. A bundle of inputs to a function just doesn't have the same weight as a struct representing a repository or a commit or something, so modeling them as the same concept just doesn't sit right with me. It could be a personal thing, though.
- preseinger 5y ago> A bundle of inputs to a function just doesn't have the same weight as a struct representing a repository or a commit or something That's true. But IMO a language primitive can carry a wide variety of semantics.