--
All posts must follow the Fuchsia Code of Conduct https://fuchsia.dev/fuchsia-src/CODE_OF_CONDUCT or may be removed.
---
You received this message because you are subscribed to the Google Groups "component-framework-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to component-framewo...@fuchsia.dev.
To view this discussion on the web visit https://groups.google.com/a/fuchsia.dev/d/msgid/component-framework-dev/CA%2BX8dX_wBmnb60avuZonZ95k6x3nEnyhawRQ%3Ds0%2BH0bQQ_jp%3Dg%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/a/fuchsia.dev/d/msgid/component-framework-dev/CAAi0OqZ70mDGEH86S%2BgEY6J0yCDCY%3D%2BQ3Yze29FSYghBMg7VEw%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/a/fuchsia.dev/d/msgid/component-framework-dev/CACNy_LSZOXzg1BYTwimFYkQhgGNpsLhPw05B_za%2BtdPy5J7%3D1g%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/a/fuchsia.dev/d/msgid/component-framework-dev/CAMmMHD6LUf%3DfiC8oJOhZUdqSUTe4d_9G6XFq-YKLPtJu%3DSqQew%40mail.gmail.com.
The final resolution for CTP-035 was to allow for array or non-array syntax if a string array property has a single string value:> ... any CML property that supports multiple string values, but has only one entry, can use either Array of String syntax or simple String syntax. So, for example, `to: [ "#startup" ]` and `to: "#startup"` are both valid.There were advocates for enforcing the array syntax (that's also my personal preference), but there were also advocates for the flexibility, which was the final call for that CTP.Note, since the current schema allows both, choosing to allow both for CTP-035 was really choosing to NOT change that part of the current CML schema. But Gary has always been open to feedback, and potentially making a change if there is sufficient support for it. (Some CTP-035 decisions were, in essence, deferred, or "wait and see" as I think Gary put it.)So, I count 3 advocates for sure, in this email (Aaron, Gabe, and me), and from the thread Yegor linked, it looks like Hunter also advocated for enforcing array syntax for array values (correct me if I'm wrong).
To view this discussion on the web visit https://groups.google.com/a/fuchsia.dev/d/msgid/component-framework-dev/CAPCR%2BShMyNpLXi3z-RZg8%3DE0Cm%3Df__%2Bdn2D%3DjNDG-W1PFDbBSw%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/a/fuchsia.dev/d/msgid/component-framework-dev/CA%2BX8dX-dzYitgWOxQaVvyEbkWomNZ7ppjDhNeac_3Up4UmnWrA%40mail.gmail.com.
Justin, I realize I kind of missed your original point about style, which is my bad. Indeed, the style we promote need not match the rules we enforce. I don't think we've decided on any style guidelines (apart from those enforced by json5format), so I'm open to discussing further. As for my personal preference, 95% of `to` fields seem to be singleton arrays, and I like the elegance of just having a string.