Am 16.07.2016 um 20:57 schrieb ZombineDev:
On Thursday, 14 July 2016 at 07:05:08 UTC, Jacob Carlborg wrote:
On 2016-07-13 13:57, Tomer Filiba wrote:
It would be really nice if I could put UDAs on enum members as well,
e.g.,
I think it should be supported, if nothing else for "turtles all the
way"/completeness.
I agree. Another thing missing is parameter UDAs. There is [1] a pull
request for that, but unfortunately it got stuck about a year ago.
[1]: https://github.com/dlang/dmd/pull/4783
+1 for both, they would be very useful. For example vibe.d currently
requires passing the parameter name as an argument to the UDA to work
around the lack of support for UDAs on parameters.
Kind of related, the "deprecated" attribute would also be important to
have for enum members [1]. I still have a bunch of enum members that
were supposed to be removed/replaced years ago, but there is no way to
implement a deprecation process.
[1]: https://issues.dlang.org/show_bug.cgi?id=9395