Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@craigbro
Created February 5, 2013 20:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save craigbro/4717176 to your computer and use it in GitHub Desktop.
Save craigbro/4717176 to your computer and use it in GitHub Desktop.
user=> (doc read)
(01:30:31 PM) rhickey: -------------------------
(01:30:31 PM) rhickey: clojure.core/read
(01:30:32 PM) rhickey: ([] [stream] [stream eof-error? eof-value] [stream eof-error? eof-value recursive?])
(01:30:32 PM) rhickey: Reads the next object from stream, which must be an instance of
(01:30:32 PM) rhickey: java.io.PushbackReader or some derivee. stream defaults to the
(01:30:33 PM) rhickey: current value of *in*.
(01:30:33 PM) rhickey: Note that read can create arbitrary Java objects etc (controlled by *read-eval*),
(01:30:33 PM) rhickey: and as such should be used only with trusted sources.
(01:30:34 PM) rhickey: For data structure interop use edn-read
(01:30:48 PM) rhickey: no safe-read
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment