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? > > 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. >
I don't think moving specific applications between JVM/CLR/JS is a target, nor should it be. People need to move their expertise in the language, and core libraries, to different applications, which might have different target platforms. So, UI/web/DB libs IMO should not be portable. Life is too short. Regex is interesting - is there a lot of core library code that uses it? Are there portable alternatives? It is quite likely that the native regex support on any platform will be best for that platform, so I'm inclined to think that #"" should follow "when in Rome" principles, and the burden should be on those who want portable regex to use something portable and eschew #"", but as I've said before, I'm not much of a regex user. Other thoughts? Rich --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---