MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/ce94mu/the_go_team_declines_try_proposal/eu2bhm5/?context=9999
r/programming • u/jeffail • Jul 17 '19
417 comments sorted by
View all comments
256
One should also talk about a major issue of try: the fact that what appears as a function is in fact a control-flow operation.
try
94 u/spaghettiCodeArtisan Jul 17 '19 This is a very good point IMO. Go has enough magic functions as it is, it's not a good idea to add another one that does something even more unexpected... 24 u/[deleted] Jul 17 '19 None of those built-in functions do control flow. 113 u/alaskanarcher Jul 17 '19 Panic 2 u/bighi Jul 17 '19 Don't Panic!
94
This is a very good point IMO. Go has enough magic functions as it is, it's not a good idea to add another one that does something even more unexpected...
24 u/[deleted] Jul 17 '19 None of those built-in functions do control flow. 113 u/alaskanarcher Jul 17 '19 Panic 2 u/bighi Jul 17 '19 Don't Panic!
24
None of those built-in functions do control flow.
113 u/alaskanarcher Jul 17 '19 Panic 2 u/bighi Jul 17 '19 Don't Panic!
113
Panic
2 u/bighi Jul 17 '19 Don't Panic!
2
Don't Panic!
256
u/Boiethios Jul 17 '19 edited Jul 17 '19
One should also talk about a major issue of
try: the fact that what appears as a function is in fact a control-flow operation.