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

read directly from the resource, no intermediate string #21

Conversation

scgilardi
Copy link
Contributor

  • uses less memory, not requiring the entire resource contents in memory
    before reading
  • renamed load-schema-rsc to read-resource to more clearly indicate what it does
    • there's nothing schema or norm specific about it
  • clojure.edn/read is safer than read-string regarding read-eval
  • the test provides an example of a more typical ensure-conforms use
    • from a resource rather than from Clojure source

- uses less memory, not requiring the entire resource contents in memory
  before reading
- renamed to more clearly indicate what it does
  - there's nothing schema or norm specific about it
- clojure.edn/read is safer than read-string regarding read-eval
- the test provides an example of a more typical ensure-conforms use
  - from resources rather than Clojure source
avescodes pushed a commit that referenced this pull request Jul 10, 2015
…diate-string-slurp

read directly from the resource, no intermediate string
@avescodes avescodes merged commit 245bc3e into avescodes:master Jul 10, 2015
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.

None yet

2 participants