Skip to content

Add clear de/serialization for #causal/base tagged literal#15

Open
bobby wants to merge 4 commits intocrs48:masterfrom
bobby:10-causal-base-serialization
Open

Add clear de/serialization for #causal/base tagged literal#15
bobby wants to merge 4 commits intocrs48:masterfrom
bobby:10-causal-base-serialization

Conversation

@bobby
Copy link
Contributor

@bobby bobby commented Mar 18, 2020

Fixes #10.

[cb]
(CausalBase. cb))

#? (:cljs (cljs.reader/register-tag-parser! 'causal.collections.list read-edn-map))
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@smothers This seemed like an error, so I replaced it with a 'causal/base tag parser. Will this break anything?

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is indeed a bug. Good catch. This code was never tested so it shouldn’t break anything important. Everything important should have tests.

@bobby
Copy link
Contributor Author

bobby commented Mar 19, 2020

This PR appears to be working in my app.

@crs48
Copy link
Owner

crs48 commented Mar 28, 2020

Looks good. Please add some tests and then it’ll be ready to merge.

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.

CausalBase Serialization

2 participants