Skip to content

Conversation

eernstg
Copy link
Member

@eernstg eernstg commented Mar 30, 2022

The evaluation order for the elements of a collection literal (say, [e1, ...e2, if (b) e3] where e2 is a set) was not mentioned. This PR adds a few words to clarify that evaluation occurs in textual order. The order of evaluation associated with the subsequences with other than a single element is already specified (e.g., the subsequence for a Set spread is obtained by a pseudo-code for-in statement that explicitly states how each object is obtained).

It also corrects a couple of typos where an empty sequence followed by a semicolon was shown as [[;]] rather than [[]];. One more set of typos fixed: \ell changed to \ell_1, four locations, in spec of static analysis of <forElement>.

The wording around "object sequences" is not wonderful, but I'd recommend that we leave it as is for now.

@eernstg eernstg requested a review from lrhn March 30, 2022 09:19
@github-actions
Copy link

github-actions bot commented Mar 30, 2022

Visit the preview URL for this PR (updated for commit 28f889e):

https://dart-specification--pr2175-specify-collection-l-7u4mbzdr.web.app

(expires Wed, 06 Apr 2022 15:46:34 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: 6941ecd630c4f067ff3d02708a45ae0f0a42b88a

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant