4 ms·
Also generally having slow code is less a problem then expensive code - exceptions can allow you to use more succinct expression that will lower long term maint
by munk-a 7y ago
Also generally having slow code is less a problem then expensive code - exceptions can allow you to use more succinct expression that will lower long term maintenance costs - the full lack of exceptions is one of the things that I think continues to impair Go which has a lot of other neat ideas (and a really good way to deal with sub-addressing in the form of slices).
- zozbot234 7y agoDoesn't Go have panic-recover which is basically the same deal?
- munk-a 7y agoPanic/recover are much more limited and while you can build an exception system from them (much like all turing complete things can be all other turing complete things) it is a pain and extremely inefficient. So panics do exist and are used for I/O errors sometimes but it's quite inconsistent.