3 ms·
> C++, D, and Go have throw/catch exceptions I believe Go does not.
by qprofyeh 3y ago
> C++, D, and Go have throw/catch exceptions
I believe Go does not.
- latchkey 3y agoI stopped reading the whole article after that bit and came here to find the one comment that called it out. =)
- pjmlp 3y agopanic/recover allow to implement something like exceptions.
- latchkey 3y agoYou and I both know that is nothing like exceptions.
- pjmlp 3y agoThanks to having compilers as part of my major I know that exceptions come in many forms.
- latchkey 3y agoOh right... Person A claims that X is true. Person A is an expert in the field concerning X. Therefore, X should be believed. Error handling != exceptions https://news.ycombinator.com/item?id=4159672 https://news.ycombinator.com/item?id=4159672
- pjmlp 3y agoIt does, even if convoluted. You can use poor man's exceptions in Go via panic/recover pattern.