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

presentation of (mutable) string-dict #1717

Open
shriram opened this issue Nov 6, 2023 · 2 comments
Open

presentation of (mutable) string-dict #1717

shriram opened this issue Nov 6, 2023 · 2 comments

Comments

@shriram
Copy link
Member

shriram commented Nov 6, 2023

When you click to expand on a (mutable) string-dict, it looks like this:

image

However, this presentation doesn't make any sense. This is not an array. The order doesn't matter. And the items are paired up. It should instead give a key-value presentation, e.g., "" is associated with [mutable-string-dict: "y", 1, "", 0, "ny", 2, "any", 3, "tany", 4], etc.

@blerner
Copy link
Member

blerner commented Nov 7, 2023

It makes exactly as little sense as the syntax [mutable-string-dict: "", 2, "y", 1, "ny", 1, "any", 2, "tany", 3] does...but at least they're consistent.

@shriram
Copy link
Member Author

shriram commented Nov 7, 2023

Well, arguably it makes a bit less sense. But anyway, the point is not to argue that we need a better constructor syntax, but rather that we need better presentation syntax for dictionaries.

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

No branches or pull requests

2 participants