It was fun experimenting with magic props, but there are a few problems. One is that it really is not providing much safety outside of parameter checking. Two is that I designed the db module incorrectly, the abstraction was wrong, it was leaky, everything outside the db should just be plain data, and type sanity is only important inside the db module itself.
It was fun experimenting with magic props, but there are a few problems. One is that it really is not providing much safety outside of parameter checking. Two is that I designed the db module incorrectly, the abstraction was wrong, it was leaky, everything outside the db should just be plain data, and type sanity is only important inside the db module itself.