I remember I used to do something like that in C++ because throwing exceptions on error situations gave me zero debug information about what happened. But forcing a segfault instead you can get the stacktrace.
As someone else commented: kudos for you code! It's really clean and well laid out.
I remember I used to do something like that in C++ because throwing exceptions on error situations gave me zero debug information about what happened. But forcing a segfault instead you can get the stacktrace.
As someone else commented: kudos for you code! It's really clean and well laid out.