Re:How we rolled out one of the largest Python 3 migrations
by samfisher83 on Tuesday September 25, 2018 @06:42PM
(#18071170)
Does go not have exception handling?
[ Parent
| on HN ]
Re:How we rolled out one of the largest Python 3 migrations
by SEJeff on Wednesday September 26, 2018 @11:03AM
(#18076642)
Go does not have exception handling at all. It is a proposal they're seriously considering for go2:
https://go.googlesource.com/proposal/+/master/design/go2draf...
See the bits about error handling and error values.
Re:How we rolled out one of the largest Python 3 migrations
by samfisher83 on Thursday September 27, 2018 @10:15AM
(#18084655)
What was the reason the go designers didn't have exception handling?
Re:How we rolled out one of the largest Python 3 migrations
by SEJeff on Thursday September 27, 2018 @11:53PM
(#18090919)
Read Rob Pike's post on why: https://commandcenter.blogspot.com/2012/06/less-is-exponenti...
The go2 proposal shows that in this respect, he was woefully wrong.
Re:How we rolled out one of the largest Python 3 migrations
by lacksconfidence on Tuesday September 25, 2018 @06:56PM
(#18071255)
go has something in the same general area of error handling called panic/recover. It's not exceptions in the normal sense, and devs expect nothing should panic across api boundaries.