I would like to get your opinion on something which happend to me last week:
A coworker wrote a function which initially gave back a bool based on some checking. Then he realised that he needs three states (start, stop and nothing). He then changed the func to return a pointer to a bool which was not initialized when to do nothing.
I totally disagree with this and told him to use enums. But he said he likes his idea better.
So, what do you think is the better approach?
Thanks in advance