You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Namespaces validate and extract uses strictly split a string in the following step:
If qualifiedName contains a U+003A (:), then strictly split the string on it and set prefix to the part before and localName to the part after.
strictly-split defines the result as a list, so "the part before" and "the part after" feels a bit vague. Due to the validation in step two and the branch condition the list will have two elements, but it would be a bit clearer to use list indexing.
The text was updated successfully, but these errors were encountered:
To what extent is it helpful to be explicit about things? When thinking about a step like this, I tend to think of something like:
If qualifiedName contains a U+003A (:), then run the following steps:
1. Let splitResult be the result of strictly split given qualifiedName and U+003A (:).
2. Set prefix to splitResult[0].
3. Set localName to splitResult[1].
Unwrapping things like this feels a bit verbose. Is there a better way?
Namespaces validate and extract uses strictly split a string in the following step:
strictly-split defines the result as a list, so "the part before" and "the part after" feels a bit vague. Due to the validation in step two and the branch condition the list will have two elements, but it would be a bit clearer to use list indexing.
The text was updated successfully, but these errors were encountered: