Y
Hacker News
new
|
ask
|
show
|
jobs
by
NickPollard
4007 days 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.
1 comments
nickzoic
4007 days ago
I think you mean
static const int days_per_week = 8;
:-).
link