Skip to content
Discussion options

You must be logged in to vote

That's a good idea, would you like to open a PR?

I like the tuple approach, as it's not as opinionated as a range (where terminology of min/max, from/to, start/end, left/right etc would get in the way), and not potentially fixed to two values (a ?coordinates=12.34;56.78;9 could make sense for a 3D coordinate system encoded into a single search param)

Elements could have different types (not relevant in this example).

That also makes sense, in the example above (map coordinates), the 3rd coordinate (zoom) is generally an integer while the other ones are floats (with different constraints on values). This can be reflected in the type, but also in the kind of serialisation/deserialisation …

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by franky47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
feature New feature or request parsers/built-in Related to built-in parsers
2 participants