-
Notifications
You must be signed in to change notification settings - Fork 284
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Decorator / attribute functions framework #344
Conversation
Collection of extensions to std.typetuple that either has not been merged yet or can't make it into Phobos for some reason.
Oops, forgot to clean up module-wide imports, update incoming. |
Updated. |
Nice, I like the generality. My gut feeling is that it would fit in Phobos, but not really in one of the existing modules*. Weren't there some attempts to introduce some kind of Two things that I had in mind while getting a quick overview. Although I knew what the code should do, I had to look twice at the * maybe |
I have tried to cover every possible mismatch case with
If you have noticed some uncovered case or want to propose more useful information to show in error messages - I am all attention :)
I have changed names for those 6 or 7 times in process of working on this. This is hard. Descriptive name for |
That's great! Should I find something (probably not I guess ;) ), I'll shout.
I'll think about it (also didn't have a really good idea, yet). But anyways, that can be changed after merging. |
Decorator / attribute functions framework
@s-ludwig Seems like you have merged it without running the tests ;) Last change I have made to demonstrate error message has slipped into the commit. Can you change return type of |
Indeed ;) Yes, will do. A pull request tester for the CI server will make for a great follow up feature... |
This is generic part of a feature we have been discussing few days ago. Probably a bit overly generic but that D metaprogramming is like drugs - very hard to stop once addiction is up and running :(
Unittest examples should provide a clear picture how this is going to be used for enhancing the REST module (this is work-in-progress currently).
Slightly off-topic; do you think something like that may fit into Phobos after some field testing or it feels too weird for stdlib?