[Issue 21808] std.format: It should be possible to change the order of key and value of AAs.

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Apr 29 15:33:47 UTC 2021


https://issues.dlang.org/show_bug.cgi?id=21808

Berni44 <bugzilla at bernis-buecher.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|Position format specifiers  |std.format: It should be
                   |don't work for AAs          |possible to change the
                   |                            |order of key and value of
                   |                            |AAs.
           Severity|normal                      |enhancement

--- Comment #2 from Berni44 <bugzilla at bernis-buecher.de> ---
Changing this to "enhancement", because normal use of positional parameters has
a completely different meaning - it gives the position of an argument in the
function call and has nothing to do with the order of the elements of a single
argument.

Anyway, I see the need for the possibility to change the order; and positional
arguments don't make any sense inside of a compound specifier. Therefore I
think, it is OK to (ab)use them like suggested here. But then it's not a bug,
but an enhancement.

--


More information about the Digitalmars-d-bugs mailing list