sdl2
sdl2 copied to clipboard
Improve API
The discardable
don't improve the API. A check
template that turns SDL_Return into an exception would. Then you can choose between discard foobar() # ignore the error
and check foobar() # raises in case of error
.
You can already do doAssert fooBar(), $sdl2.getError()
.
Yes but that could be improved.
I don't see how.