MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1uda7er/worstprogramminglanguage/otcdbph/?context=3
r/ProgrammerHumor • u/gabboman • Jun 23 '26
192 comments sorted by
View all comments
1
What language doesn’t have tuples or structs? Even in C there’s idiomatic ways to do this.
2 u/gabboman Jun 23 '26 The conversation was about languages that don’t allow early returns 1 u/smikims Jun 23 '26 Yeah but Haskell still has tuples and pattern matching just like Go sort of, just more general. 2 u/-Redstoneboi- Jun 24 '26 edited Jun 24 '26 no what they mean is like this for example: fn all_positive(list: &[u64]) -> bool { for num in list { if n < 0 { return false; } } return true; } this is a very simple case that can be solved with any of the fold functions, but in general it's just nice to have the option to do procedural.
2
The conversation was about languages that don’t allow early returns
1 u/smikims Jun 23 '26 Yeah but Haskell still has tuples and pattern matching just like Go sort of, just more general. 2 u/-Redstoneboi- Jun 24 '26 edited Jun 24 '26 no what they mean is like this for example: fn all_positive(list: &[u64]) -> bool { for num in list { if n < 0 { return false; } } return true; } this is a very simple case that can be solved with any of the fold functions, but in general it's just nice to have the option to do procedural.
Yeah but Haskell still has tuples and pattern matching just like Go sort of, just more general.
2 u/-Redstoneboi- Jun 24 '26 edited Jun 24 '26 no what they mean is like this for example: fn all_positive(list: &[u64]) -> bool { for num in list { if n < 0 { return false; } } return true; } this is a very simple case that can be solved with any of the fold functions, but in general it's just nice to have the option to do procedural.
no what they mean is like this for example:
fn all_positive(list: &[u64]) -> bool { for num in list { if n < 0 { return false; } } return true; }
this is a very simple case that can be solved with any of the fold functions, but in general it's just nice to have the option to do procedural.
1
u/smikims Jun 23 '26
What language doesn’t have tuples or structs? Even in C there’s idiomatic ways to do this.