Metaprog can be abstruse
ryuukk_
ryuukk.dev at gmail.com
Mon Jul 4 12:36:27 UTC 2022
I personally only use metaprogramming for tasks i will know will
become repetitive
For your example it is not worth it, you only would write that
code once anyways
For my case here, it perfectly worth it, adding new packet
handler is a matter of an attribute
The complexity of the code added should be relative to its
benefits, no need to over do it
![screenshot](https://i.imgur.com/gLvENTY.png)
More information about the Digitalmars-d
mailing list