NOTE: "complexity" is somewhat vaguely defined here. The real distinction is whether we
- expect an immediate return,
- expect some non-trivial work that is a function of input size or object size
- expect I/O-bound work
| Name / Pattern | Intended use | I/O allowed | Typical complexity expectation | Can mutate this |
Exceptions: allowed by default | "Expected failure" alternative |
|---|---|---|---|---|---|---|
of(...) |
Construct from domain parts or a domain identifier (validated factory) | No | Smal |