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

Key words of MAP should be normalized to SET-WORDS #2354

Open
Oldes opened this issue Jan 18, 2019 · 1 comment
Open

Key words of MAP should be normalized to SET-WORDS #2354

Oldes opened this issue Jan 18, 2019 · 1 comment

Comments

@Oldes
Copy link

Oldes commented Jan 18, 2019

The map! can now have keys of any word! type:

>> words-of probe make map! [a 1 b: 2 :c 3 'd 4]
make map! [
    a 1
    b: 2
    :c 3
    'd 4
]
== [a b: :c 'd]

It should be normalized lie in Red:

>> words-of probe make map! [a 1 b: 2 :c 3 'd 4]
#(
    a: 1
    b: 2
    c: 3
    d: 4
)
== [a b c d]

Related issue: #2353

@hostilefork
Copy link
Member

hostilefork commented Jan 19, 2019

I don't see that it makes sense to ask a MAP for its "words"--when the keys can be anything (in Ren-C literally anything). It should be keys of, and if one wants filtering of that because you know your map is just word keys it should be in userspace. (Note: functions have parameters of in Ren-C, there is no "words of" there either.)

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