D has become unbearable and it needs to stop
FeepingCreature
feepingcreature at gmail.com
Thu Jun 15 07:33:32 UTC 2023
On Thursday, 15 June 2023 at 07:07:18 UTC, Walter Bright wrote:
> On 6/8/2023 10:20 AM, Johan wrote:
>> - Intentional change of behaviour, sometimes without clear
>> solution path or with buggy solutions.
>> https://issues.dlang.org/show_bug.cgi?id=23966 and 23977 for
>> recent examples.
>
> I suggest:
>
> Restore the old getAttributes behavior, and create a new
> getAttributes2 with the new behavior.
>
> Will that work for you?
Going a bit offtopic, but this is one case where a true package
system would come in handy! You could opt into migrations on a
per-package basis, and have one compilation that mixes for
instance different usages of `getAttributes` in different source
files with no ambiguity or confusion.
One may even imagine bundling lots of migrations into "language
editions" and updating those on a "long-term" basis.
dub.json:
```
"edition": "d-2023",
```
(More at my dconf talk!)
More information about the Digitalmars-d
mailing list