4 ms·
... writing the code required to write the code needed to implement indexes is more fragile than letting the compiler do it for you, most likely. I maintain a
by vlowther 5y ago
... writing the code required to write the code needed to implement indexes is more fragile than letting the compiler do it for you, most likely. I maintain a reflect-based indexing implementation for in-memory data, and look forward to seeing what I can do with generics to get rid of reflect based overhead.
- janderland 5y ago:shrug: I’ve tried doing it both ways in other languages and found that code gen is less fragile than I expected, though I needed to carefully consider the interface between generated & manually written code.