10 ms·
Indeed: static const int eight = 8; x * eight; Sometimes magic numbers are just that - numbers. Adding constant definitions is often a good thing, but so
by NickPollard 11y ago
Indeed:
static const int eight = 8;
x * eight;
Sometimes magic numbers are just that - numbers. Adding constant definitions is often a good thing, but sometimes just adds noise.
- deleted 11y ago[deleted]
- nickzoic 11y agoI think you mean static const int days_per_week = 8; :-).