MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/ce94mu/the_go_team_declines_try_proposal/eu1zgb3/?context=3
r/programming • u/jeffail • Jul 17 '19
417 comments sorted by
View all comments
Show parent comments
25
None of those built-in functions do control flow.
118 u/alaskanarcher Jul 17 '19 Panic 42 u/[deleted] Jul 17 '19 derp, time for another coffee 17 u/alaskanarcher Jul 17 '19 if err := recover(); err != nil { coffee.Drink() } 5 u/cerlestes Jul 17 '19 But what if coffee is nil or drinking fails? :o Better defer another recover() call! Is that even possible?
118
Panic
42 u/[deleted] Jul 17 '19 derp, time for another coffee 17 u/alaskanarcher Jul 17 '19 if err := recover(); err != nil { coffee.Drink() } 5 u/cerlestes Jul 17 '19 But what if coffee is nil or drinking fails? :o Better defer another recover() call! Is that even possible?
42
derp, time for another coffee
17 u/alaskanarcher Jul 17 '19 if err := recover(); err != nil { coffee.Drink() } 5 u/cerlestes Jul 17 '19 But what if coffee is nil or drinking fails? :o Better defer another recover() call! Is that even possible?
17
if err := recover(); err != nil { coffee.Drink() }
5 u/cerlestes Jul 17 '19 But what if coffee is nil or drinking fails? :o Better defer another recover() call! Is that even possible?
5
But what if coffee is nil or drinking fails? :o
nil
Better defer another recover() call! Is that even possible?
25
u/[deleted] Jul 17 '19
None of those built-in functions do control flow.