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

Support :as #6

Closed
wants to merge 1 commit into from
Closed

Support :as #6

wants to merge 1 commit into from

Conversation

icambron
Copy link

A fix for #3. I took a shortcut compared to the suggestion in the ticket; namely, I think it's OK to coerce things to a stream and from a stream to the desired thing, so that there isn't this 3x3 matrix of conversions, just to and from streams. That means it does more work than it needs to, but it reduces the amount of code. I also took a non-standard approach to the tests: I reused the coercer to reverse the coercion and make sure we had the right thing. Otherwise, I'd basically just have to repeat the coercion logic in the test.

Add support for {:as ...} for streams, text, and byte arrays
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.

1 participant