by manucorporat · 12y ago · 0 comments
I guess, it shows how powerful the panic(), recover(), defer can be, in my opinion much more than try/catch/finally.
A practical demonstration. Go even without explicit exceptions has the semantics needed to provide it exactly in the same way Java/C++ and Python does.
1. Nobody uses it, for the reasons posted above.
2. People actually use it, which is bad, for the reasons posted above.
What you were trying to learn from this "experiment"? And what did you actually learn that is valuable to other people?
another examples, (not sure if you know objective-c). primitive type generics using macros + blocks: https://github.com/manucorporat/obme-ios/blob/master/obme.h
another example or a clever hack to break the limits ;)