diff options
| author | Paul Buetow <paul@buetow.org> | 2026-05-23 22:21:57 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-05-23 22:21:57 +0300 |
| commit | f5d15007d7439d4f3bb7391661031b3445e8ecff (patch) | |
| tree | b0ac06e48b70d443897f89f0a206e8d81529fe92 /cmd | |
| parent | d50dec3930ff9ecae590e4ec4f0ddd5581021f1d (diff) | |
refactor: split NewNumber into two constructors (NewNumber, NewNumberWithMetric)
Eliminate confusing variadic *Metric parameter from NewNumber().
Callers either pass nothing (defaults to Cool) or one metric —
variadic implied zero-or-many, causing confusion.
New API:
NewNumber(value, mode) — metric defaults to Cool
NewNumberWithMetric(value, mode, metric) — explicit metric
All callers updated to use the appropriate constructor.
No behavioral changes; same defaults, clearer API.
Diffstat (limited to 'cmd')
0 files changed, 0 insertions, 0 deletions
