json
json copied to clipboard
init-list guidance
The rule for construction should be
"Always use ()
unless you want an array
."
Hey @vinniefalco, I am a new contributor. will you please explain this issue? I want to contribute to this repo.
Is this really true? We use init-lists in tests to create objects.
Is this really true?
I'm not sure but I know that init-list construction is problematic because of C++ and there is nothing we can do about it except warn users in the docs.
Ah, you mean that we should explicitly dissuade users from using complex init-list expressions?
Something like that, yes. We can probably ignore this until someone reports an actual issue.