Skip to content

Instantly share code, notes, and snippets.

@mfikes
Last active August 29, 2015 14:15
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 mfikes/a5a5a14350756bf10c81 to your computer and use it in GitHub Desktop.
Save mfikes/a5a5a14350756bf10c81 to your computer and use it in GitHub Desktop.
Printing

If Ambly honors the default of :print being println then this sample below would be the behavior. Perhaps this is a non-issue because Ambly startup can override this default so that :print is print.

(As an aside, flush is often only needed in combination with print, as oftentimes streams will flush on newlines.)

ClojureScript:cljs.user> (print "Hi")
Hi
nil
ClojureScript:cljs.user> (println "Hi")
Hi


nil
ClojureScript:cljs.user> 

For reference, here is the correct behavior

user=> (print "Hi")
Hinil
user=> (println "Hi")
Hi
nil
user=> 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment