Skip to content

Conversation

@krzema12
Copy link
Member

@krzema12 krzema12 commented May 3, 2024

It turned out that iterating over a map/set returned by a common map builder mapOf/setOf corresponds to the order given to this function. It wasn't obvious since the builder returns a regular Map/Set where the order is not specified. Thanks to this observation, we can simplify the API and not require linkedMapOf/linkedSetOf which is more verbose.

Action bindings still operate on LinkedHashMap because making this change would break the Maven-based bindings server. Leaving this type there is not that painful, it's only visible if someone decides to create a local action binding. Otherwise, the binding code is auto-generated.

Copy link
Member Author

krzema12 commented May 3, 2024

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @krzema12 and the rest of your teammates on Graphite Graphite

@krzema12 krzema12 changed the title feat(dsl): accept maps instead of linked hash maps feat(dsl): accept maps and sets instead of linked hash maps and linked hash sets May 4, 2024
@krzema12 krzema12 changed the title feat(dsl): accept maps and sets instead of linked hash maps and linked hash sets feat(dsl): accept maps and sets instead of linked versions May 4, 2024
@krzema12 krzema12 marked this pull request as ready for review May 4, 2024 07:03
@krzema12 krzema12 merged commit 0d125b3 into main May 4, 2024
@krzema12 krzema12 deleted the 05-03-feat_dsl_accept_maps_instead_of_linked_hash_maps branch May 4, 2024 07:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants