REPLs are of course free to choose how they read and some of the other changes coming out of the socket repl work may make those choices easier to select. The clojure.main/repl function is already (perhaps excessively) parameterized and can be given a custom read function for example. The read and read-string option maps are intentionally the first arg for easy use with partial.
On Wed, Apr 1, 2015 at 1:51 PM, Sean Corfield <s...@corfield.org> wrote: > On Apr 1, 2015, at 10:09 AM, Alex Miller <a...@puredanger.com> wrote: > > There is no way to "turn on" read conditionals by default at the REPL - it > is only on by default when loading a .cljc file. > > > This sounds like a useful feature to add to the REPL tho’ so that you can > copy’n’paste code as-is and have it behave "appropriately" (i.e., you can > verify that a given section of code does the right thing for a given > environment)? > > I guess we’ll have to see how various IDEs deal with this to know what’s > really needed… > > Sean > > On Wednesday, April 1, 2015 at 11:56:12 AM UTC-5, Alexander Gunnarson > wrote: >> >> This patch is incredibly useful! Great job to everyone that contributed. >> One question: how do I enable conditional reading by default in the REPL as >> opposed to passing a properties map to /read-string/, etc.? Do I set >> certain system properties in the command line like "cond_read=true"? >> > -- 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.