3 ms·
1. Pretend the library already exists. 2. Use your experience as a library user to write code using the library. 3. Implement the library so that the code fro
by yorwba 3y ago
1. Pretend the library already exists.
2. Use your experience as a library user to write code using the library.
3. Implement the library so that the code from step 2 actually works.
If you discover that your implementation seems to require a lot of boilerplate and you suspect that metaprogramming could help simplify things, you can try it. Otherwise don't bother.