re: Difference between state and State VIEW POST

TOP OF THREAD FULL DISCUSSION
re: I think I probably focused on a different point than your first comment. I agree that avoid unnecessary exceptions that could lead to invalid state...

In some cases a no-op is fine - for a stretch I was a big fan of the null object pattern - but in this particular case I'd honestly rather see an exception than a no-op. I can see myself being that idiot coder who skipped the docs and is tearing his hair out wondering why my un-baked pizza isn't delivering.

I'm also seeing myself as increasingly old fashioned though - I'm not a fan of dynamic languages because I want this kind of type safety we're discussing - so I may not be able to fully see your side of it.

code of conduct - report abuse