Add __traits isDynamicArray - #23803
Conversation
DMD perf check
All measurements
4c2c3be vs merge-base 86b74e2 · about these metrics |
|
|
|
What's the rationale for isArray and why is an Associative Array not one? |
|
From the issue
This PR's implementation accepts enums |
Good point. I agree that isArray should be true for AAs. Update: I removed isArray from this PR. |
Shouldn't we mimic the behavior And then later disallow all traits of this kind to not accept enums? For the sake of consistency. I'm ok with both alternatives. |
That's not what I meant, I don't see why it needs to exist in the first place. What's the real world use case? |
I don't know. |
19d5ca5 to
4c2c3be
Compare
|
|
Removed |
Partially resolves #23784.
I can split the PR up into two if requested.Changelog will be updated if this gets approved.
Looking into failing tests.