On Thu, Aug 27, 2009 at 9:05 PM, Chas Emerick <cemer...@snowtide.com> wrote:

>
>
> On Aug 27, 2009, at 1:34 PM, Chouser wrote:
>
> > The benefits of #"" producing a real java.util.regex.Pattern
> > object instead of some Clojury wrapper will decrease as it
> > becomes more common to write Clojure code that can run on
> > non-JVM platforms.  So although this idea has come up and
> > then been abandoned several times before, I think it's worth
> > bringing up again periodically to see what makes sense.
>
> Why wouldn't #"" produce whatever the corollary regex object is on
> each host platform?
>

I had a couple suggestions on clojure-dev for ClojureCLR that line up with
the "produce the corollary idea":
http://groups.google.com/group/clojure-dev/browse_thread/thread/d4286dac9f1cf8ba/7e05daa7b782c075
.
<http://groups.google.com/group/clojure-dev/browse_thread/thread/d4286dac9f1cf8ba/7e05daa7b782c075>


> Tangentially, if I think ahead a couple of 'moves', I'd think that
> perhaps there's a desire to have clojure code that is thoroughly
> portable between, say, Java and .NET host platforms.
>

Essentially, as Chouser noted, #"" and re-seq as currently defined in
Clojure get you pretty far as a portable API. However, unless the platforms
agree on literal regex syntax (they don't, beyond the basic "asdf|[0-9]+"
features) will prevent true portability of the literals.

Shawn

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to