I wasn't familiar with dynamic regex building. Sounds like a task that would be best performed separately from normal Clojure reading/evaluation (i.e. using a different file).
I don't think dynamic SQL construction would benefit from raw strings. String interpolation is a different story. On Monday, March 18, 2013 12:50:13 PM UTC+1, Marko Topolnik wrote: > > On Monday, March 18, 2013 12:35:31 PM UTC+1, vemv wrote: > >> Nobody wants to store every regexp in a separate file. >>> >> >> That's because regexes are 'atomic' - you don't place Clojure expressions >> in the middle of them. SQL or math are vastly different from that. As for >> SQL, it *is* common practice to store them as isolatedly as possible. >> > > Dynamic regex building is a standard technique. Unfortunately, once you > leave the regex literal world, you are back to escaping everything. > > I also have tons of SQL (HQL, actually but same thing) inline with my > Clojure. It is an approach that never backfired on me. I also have much > need for dynamic SQL generation. I don't consider myself special because of > that. > > -marko > -- -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to [email protected] Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to [email protected] 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 [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
