Allow conditional inclusion of elements in array/dictionary literals?

Another design question: what should we do for expressions like this:

let collection = [
#if FLAG
  "foo",
#else
  "foo": 12,
#endif
]

Should this be error?

5 Likes