r/programminghorror • • Jun 05 '26

C# SuccessMessage ErrorMessage

ErrorMessage successMessage = new ErrorMessage(ErrorType.ActivityCreateSuccess);

(From an approved PR with 2 reviewers - how do some people sleep at night??)

230 Upvotes

25 comments sorted by

View all comments

Show parent comment

5

u/wonderb0lt Jun 05 '26

Well the enum is still misnamed then. If there's one state that isn't an error, it shouldn't be called anything with error

1

u/Sacaldur Jun 06 '26

Probably that's what the "not that I like it" was hinting at as well.