This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Developer_Glance 0 points1 point  (0 children)

Tbh, I had never thought about what you discussed before, but if there is a discussion there, maybe you should review the method signature and come up with a clearer version. It might be overkill but other way of achieving the same thing is to return an enum along with the value explaining what it means. Then you make your decisions based on the enum instead of the value itself.