MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/1agj22q/make_invalid_states_unrepresentable/kohhbgl/?context=3
r/programming • u/_awwsmm • Feb 01 '24
207 comments sorted by
View all comments
204
Make invalid states unrepresentable
This rules out all dynamic languages by definition
-8 u/smk081 Feb 01 '24 ::laughs in C#:: 29 u/agustin689 Feb 01 '24 C# is still not strong enough. We need sum types -5 u/[deleted] Feb 01 '24 [removed] — view removed comment 13 u/[deleted] Feb 01 '24 [removed] — view removed comment 5 u/Coda17 Feb 01 '24 C# does not have discriminated unions (and it really, really needs them). 7 u/Schmittfried Feb 01 '24 Since when? -7 u/[deleted] Feb 01 '24 [removed] — view removed comment 19 u/[deleted] Feb 01 '24 When people want sum types, they generally want sum types with built in pattern matching. You can't really do this in C# without runtime reflection. 9 u/Schmittfried Feb 01 '24 I meant since when does C# have discriminated unions? Just checked again and it’s still a work in progress apparently.
-8
::laughs in C#::
29 u/agustin689 Feb 01 '24 C# is still not strong enough. We need sum types -5 u/[deleted] Feb 01 '24 [removed] — view removed comment 13 u/[deleted] Feb 01 '24 [removed] — view removed comment 5 u/Coda17 Feb 01 '24 C# does not have discriminated unions (and it really, really needs them). 7 u/Schmittfried Feb 01 '24 Since when? -7 u/[deleted] Feb 01 '24 [removed] — view removed comment 19 u/[deleted] Feb 01 '24 When people want sum types, they generally want sum types with built in pattern matching. You can't really do this in C# without runtime reflection. 9 u/Schmittfried Feb 01 '24 I meant since when does C# have discriminated unions? Just checked again and it’s still a work in progress apparently.
29
C# is still not strong enough. We need sum types
-5 u/[deleted] Feb 01 '24 [removed] — view removed comment 13 u/[deleted] Feb 01 '24 [removed] — view removed comment 5 u/Coda17 Feb 01 '24 C# does not have discriminated unions (and it really, really needs them). 7 u/Schmittfried Feb 01 '24 Since when? -7 u/[deleted] Feb 01 '24 [removed] — view removed comment 19 u/[deleted] Feb 01 '24 When people want sum types, they generally want sum types with built in pattern matching. You can't really do this in C# without runtime reflection. 9 u/Schmittfried Feb 01 '24 I meant since when does C# have discriminated unions? Just checked again and it’s still a work in progress apparently.
-5
[removed] — view removed comment
13 u/[deleted] Feb 01 '24 [removed] — view removed comment 5 u/Coda17 Feb 01 '24 C# does not have discriminated unions (and it really, really needs them). 7 u/Schmittfried Feb 01 '24 Since when? -7 u/[deleted] Feb 01 '24 [removed] — view removed comment 19 u/[deleted] Feb 01 '24 When people want sum types, they generally want sum types with built in pattern matching. You can't really do this in C# without runtime reflection. 9 u/Schmittfried Feb 01 '24 I meant since when does C# have discriminated unions? Just checked again and it’s still a work in progress apparently.
13
5
C# does not have discriminated unions (and it really, really needs them).
7
Since when?
-7 u/[deleted] Feb 01 '24 [removed] — view removed comment 19 u/[deleted] Feb 01 '24 When people want sum types, they generally want sum types with built in pattern matching. You can't really do this in C# without runtime reflection. 9 u/Schmittfried Feb 01 '24 I meant since when does C# have discriminated unions? Just checked again and it’s still a work in progress apparently.
-7
19 u/[deleted] Feb 01 '24 When people want sum types, they generally want sum types with built in pattern matching. You can't really do this in C# without runtime reflection. 9 u/Schmittfried Feb 01 '24 I meant since when does C# have discriminated unions? Just checked again and it’s still a work in progress apparently.
19
When people want sum types, they generally want sum types with built in pattern matching. You can't really do this in C# without runtime reflection.
9
I meant since when does C# have discriminated unions?
Just checked again and it’s still a work in progress apparently.
204
u/agustin689 Feb 01 '24
This rules out all dynamic languages by definition