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

Don't convert records to maps when reading #551

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

r0man
Copy link

@r0man r0man commented Dec 23, 2015

Hey David,

we discussed earlier today an issue about defrecords and
normalization. I first thought records in the state atom are converted
to maps during normalization. This is not the case. I was using pprint
and didn't realize that records are printed as regualar maps.

However, the records are turned into maps while reading them. I think
the problem is in the path-meta function and the use of (into {} ...).

I added a test case to demonstrate the issue, and added a case for
records in the path-meta fn. However I'm not quite sure if
path-meta should stop at a record (as I do now), or continue as in
the map case. Btw. (empty record) does not work.

Feedback welcome!

Roman

@r0man
Copy link
Author

r0man commented Mar 6, 2016

I updated this PR and resolved the conflicts with latest master.

@den1k
Copy link

den1k commented Jan 16, 2017

Why has this PR not been merged? Besides the merge conflict, are the problems with the implementation, or the effects on the rest of the codebase, or something else??

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