On Mar 14, 4:16 am, "Darshan Shaligram" <
scinti...@gmail.com> wrote:
> On Fri, Mar 14, 2008 at 1:44 PM, Darshan Shaligram <
scinti...@gmail.com> wrote:
> > The #"" reader macro breaks quoted forms:
> > user=> '(. #"c" (matcher "c"))
> > (. c (matcher "c"))
> [...]
> > I believe #"x" should expand into (. java.util.regex.Pattern (compile
> > "x")) instead of compiling the pattern in the reader itself.
>
> Or alternatively, of course, Patterns should get the printer roundtrip
> treatment.
>
Not compiling in the reader would substantially reduce their utility.
This really is a printing thing - has nothing to do with quote:
user=> #"c"
c
Things that aren't specially handled by the printer print their
toString representation. We've been discussing a modification to the
#"..." syntax. When I implement that change I'll add regex print
support.
Rich