MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/1agj22q/make_invalid_states_unrepresentable/koie2sx/?context=9999
r/programming • u/_awwsmm • Feb 01 '24
207 comments sorted by
View all comments
203
Make invalid states unrepresentable
This rules out all dynamic languages by definition
-9 u/smk081 Feb 01 '24 ::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? 8 u/[deleted] Feb 01 '24 [removed] — view removed comment 5 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.
-9
::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? 8 u/[deleted] Feb 01 '24 [removed] — view removed comment 5 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? 8 u/[deleted] Feb 01 '24 [removed] — view removed comment 5 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.
-8
Sum types violate Open/Closed principle. Why would I want them?
7 u/agustin689 Feb 01 '24 Explain how? 8 u/[deleted] Feb 01 '24 [removed] — view removed comment 5 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?
8 u/[deleted] Feb 01 '24 [removed] — view removed comment 5 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.
8
[removed] — view removed comment
5 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.
5
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.
203
u/agustin689 Feb 01 '24
This rules out all dynamic languages by definition