r/programminghorror • u/Daeben72 • 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
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