2 ms·
> That's dumb. I'd like a function to be GetJobName to indicate that it doesn't mutate anything. Maybe CreateJobName to indicate mutation. Just JobName is usele
by jrockway 4y ago
> That's dumb. I'd like a function to be GetJobName to indicate that it doesn't mutate anything. Maybe CreateJobName to indicate mutation. Just JobName is useless.
It can't mutate anything with a non-pointer receiver. Mostly.
> how do you reliably "test" its emptiness
See time.IsZero() for an example.