Replies: 2 comments 4 replies
-
I would argue:
Therefore, examples 1, 2 and 4 raise an error. A case can be made for example 3 to also raise an error. |
Beta Was this translation helpful? Give feedback.
0 replies
-
I agree on rejecting 1, 2, and 4, and have a minor preference for rejecting 3 as well (aligning with the general strict input validation throughout the language, such as sort rejecting mixed arrays). |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
See discussion in #102.
Behavior is currently undefined for
from_items
input that is not an array of [string, value] pairs. Examples:from_items(`[ [] ]`)
from_items(`[ ["keyWithNoValue"] ]`)
from_items(`[ ["key", "value", "extra"] ]`)
from_items(`[ [1, "number"], [null, "null"], [{}, "object"] ]`)
Beta Was this translation helpful? Give feedback.
All reactions