Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KQL: remove map operator and accessors #222

Merged
merged 1 commit into from
Aug 28, 2022
Merged

Conversation

zkat
Copy link
Member

@zkat zkat commented Oct 6, 2021

Honestly, they're just too implementation-specific

Honestly, they're just too implementation-specific
@zkat zkat added the breaking This can only be done for the next major version of KDL label Oct 6, 2021
@danini-the-panini
Copy link
Contributor

My poor heart when I read this just as I finally finished getting my map operator and accessor implementations working 😭

@zkat
Copy link
Member Author

zkat commented Dec 23, 2021

Map operator is still great, and if implementations want something like that, it makes sense!

I just didn't think it made sense for the spec

fabiancook added a commit to virtualstate/kdl that referenced this pull request Feb 20, 2022
@fabiancook
Copy link
Contributor

The individual accessors without the map operator line up very nicely to JSX land concepts.

The map operator on the back of the accessors works really well too.

Since they have stayed in the spec this long, and map operators are optional now, instead of removing them both, maybe we should just map accessors optional too?

I have included both accessors and map operator support in the JSX query engine.

https://github.com/virtualstate/kdl/blob/464d0cd5e2aae99bdcc97f00ea8a50ce00a4021a/src/tests/readme.tsx#L79-L88

@zkat zkat merged commit 2d5e543 into kdl-v2 Aug 28, 2022
@zkat zkat deleted the zkat/query-remove-map branch August 28, 2022 20:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking This can only be done for the next major version of KDL
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants