3 ms·
The context switch and device i/o will dwarf the cost of the exception. So it's a bad example - "file not found" is a pretty reasonable exception. There certai
by stickfigure 7y ago
The context switch and device i/o will dwarf the cost of the exception. So it's a bad example - "file not found" is a pretty reasonable exception.
There certainly are APIs that abuse exceptions, but IMHO far fewer than most Go (et al) programmers claim.