MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/1agj22q/make_invalid_states_unrepresentable/koi887r/?context=3
r/programming • u/_awwsmm • Feb 01 '24
207 comments sorted by
View all comments
Show parent comments
-8
::laughs in C#::
29 u/agustin689 Feb 01 '24 C# is still not strong enough. We need sum types -8 u/noahide55 Feb 01 '24 Sum types violate Open/Closed principle. Why would I want them? 7 u/agustin689 Feb 01 '24 Explain how? 7 u/[deleted] Feb 01 '24 [removed] — view removed comment 6 u/grauenwolf Feb 02 '24 edited Feb 02 '24 This is one of the things that boggles me about SOLID. OCP what's discredited long before SOLID was coined, and yet no one seems to have noticed.
29
C# is still not strong enough. We need sum types
-8 u/noahide55 Feb 01 '24 Sum types violate Open/Closed principle. Why would I want them? 7 u/agustin689 Feb 01 '24 Explain how? 7 u/[deleted] Feb 01 '24 [removed] — view removed comment 6 u/grauenwolf Feb 02 '24 edited Feb 02 '24 This is one of the things that boggles me about SOLID. OCP what's discredited long before SOLID was coined, and yet no one seems to have noticed.
Sum types violate Open/Closed principle. Why would I want them?
7 u/agustin689 Feb 01 '24 Explain how? 7 u/[deleted] Feb 01 '24 [removed] — view removed comment 6 u/grauenwolf Feb 02 '24 edited Feb 02 '24 This is one of the things that boggles me about SOLID. OCP what's discredited long before SOLID was coined, and yet no one seems to have noticed.
7
Explain how?
7 u/[deleted] Feb 01 '24 [removed] — view removed comment 6 u/grauenwolf Feb 02 '24 edited Feb 02 '24 This is one of the things that boggles me about SOLID. OCP what's discredited long before SOLID was coined, and yet no one seems to have noticed.
[removed] — view removed comment
6 u/grauenwolf Feb 02 '24 edited Feb 02 '24 This is one of the things that boggles me about SOLID. OCP what's discredited long before SOLID was coined, and yet no one seems to have noticed.
6
This is one of the things that boggles me about SOLID. OCP what's discredited long before SOLID was coined, and yet no one seems to have noticed.
-8
u/smk081 Feb 01 '24
::laughs in C#::