February 02, 2021 Re: DIP1027 + Design by Introspection | ||||
---|---|---|---|---|
| ||||
Posted in reply to 12345swordy | On Tuesday, 2 February 2021 at 18:36:30 UTC, 12345swordy wrote: > > We don't need more built in attributes to an attribute filled language. > > -Alex Sorry to inform you that this one kinda already exist. https://dlang.org/spec/pragma.html#printf Although, I prefer attributes over pragma, as it can be introspected. It's actually a fairly common solution, even gcc has format attribute: https://gcc.gnu.org/onlinedocs/gcc/Common-Function-Attributes.html See "format (archetype, string-index, first-to-check)" |
February 03, 2021 Re: DIP1027 + Design by Introspection | ||||
---|---|---|---|---|
| ||||
Posted in reply to Steven Schveighoffer | On Tuesday, 2 February 2021 at 18:47:48 UTC, Steven Schveighoffer wrote:
>
> I would note that DIP1027 would be a great CIP. D is not C. We have insanely good tools for this. Making it so you can't use introspection tools is not my idea of "better".
>
> -Steve
That was some good destructing, kudos! I still think UDA has merit, but I can't fix all your concerns without increasing complexity even beyond DIP1036.
Will try from the other direction, to see if I can offer any ideas to simplify DIP1036 instead...
/Daniel
|
Copyright © 1999-2021 by the D Language Foundation