printf does not always generate output
My core.clj ends with: (println (format Started: %s (println) (java.util.Date.))) (printf Started: %s (printf)\n (java.util.Date.)) I do not see the output from the printf when I run 'lein repl'. The funny thing is that when I switch the two statements, both are shown. Also when I do 'lein run' both are shown. What could be happening here? For the moment I changed all my printf to println with format, but it is a little annoying. -- Cecil Westerhof -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups Clojure group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: printf does not always generate output
Try adding (flush) at the end. On Feb 27, 2015, at 2:12 PM, Cecil Westerhof cldwester...@gmail.com wrote: My core.clj ends with: (println (format Started: %s (println) (java.util.Date.))) (printf Started: %s (printf)\n (java.util.Date.)) I do not see the output from the printf when I run 'lein repl'. The funny thing is that when I switch the two statements, both are shown. Also when I do 'lein run' both are shown. What could be happening here? For the moment I changed all my printf to println with format, but it is a little annoying. -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups Clojure group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: printf does not always generate output
Not every function and macro is documented completely or accurately on ClojureDocs.org, but I would recommend checking it out when you run across something that looks amiss, and see if the examples mention what you are seeing. In this case, it does: http://clojuredocs.org/clojure.core/printf Andy On Fri, Feb 27, 2015 at 11:12 AM, Cecil Westerhof cldwester...@gmail.com wrote: My core.clj ends with: (println (format Started: %s (println) (java.util.Date.))) (printf Started: %s (printf)\n (java.util.Date.)) I do not see the output from the printf when I run 'lein repl'. The funny thing is that when I switch the two statements, both are shown. Also when I do 'lein run' both are shown. What could be happening here? For the moment I changed all my printf to println with format, but it is a little annoying. -- Cecil Westerhof -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups Clojure group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups Clojure group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: printf does not always generate output
2015-02-27 20:36 GMT+01:00 Andy Fingerhut andy.finger...@gmail.com: Not every function and macro is documented completely or accurately on ClojureDocs.org, but I would recommend checking it out when you run across something that looks amiss, and see if the examples mention what you are seeing. In this case, it does: http://clojuredocs.org/clojure.core/printf That is certainly a place I should look more often. :-) A wealth of information. On Fri, Feb 27, 2015 at 11:12 AM, Cecil Westerhof cldwester...@gmail.com wrote: My core.clj ends with: (println (format Started: %s (println) (java.util.Date.))) (printf Started: %s (printf)\n (java.util.Date.)) I do not see the output from the printf when I run 'lein repl'. The funny thing is that when I switch the two statements, both are shown. Also when I do 'lein run' both are shown. What could be happening here? For the moment I changed all my printf to println with format, but it is a little annoying. -- Cecil Westerhof -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups Clojure group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: printf does not always generate output
I have https://jafingerhut.github.io/cheatsheet/grimoire/cheatsheet-tiptip-cdocs-summary.html bookmarked and also like basically always open in a tab forever, fwiw. On Friday, February 27, 2015 at 4:37:38 PM UTC-5, Cecil Westerhof wrote: 2015-02-27 20:36 GMT+01:00 Andy Fingerhut andy.fi...@gmail.com javascript:: Not every function and macro is documented completely or accurately on ClojureDocs.org, but I would recommend checking it out when you run across something that looks amiss, and see if the examples mention what you are seeing. In this case, it does: http://clojuredocs.org/clojure.core/printf That is certainly a place I should look more often. :-) A wealth of information. On Fri, Feb 27, 2015 at 11:12 AM, Cecil Westerhof cldwes...@gmail.com javascript: wrote: My core.clj ends with: (println (format Started: %s (println) (java.util.Date.))) (printf Started: %s (printf)\n (java.util.Date.)) I do not see the output from the printf when I run 'lein repl'. The funny thing is that when I switch the two statements, both are shown. Also when I do 'lein run' both are shown. What could be happening here? For the moment I changed all my printf to println with format, but it is a little annoying. -- Cecil Westerhof -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups Clojure group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: printf does not always generate output
2015-02-27 22:47 GMT+01:00 Sam Raker sam.ra...@gmail.com: I have https://jafingerhut.github.io/cheatsheet/grimoire/cheatsheet-tiptip-cdocs-summary.html bookmarked and also like basically always open in a tab forever, fwiw. Also good information. -- Cecil Westerhof -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups Clojure group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.