On 14 May 2010 04:32, Stuart Halloway <stuart.hallo...@gmail.com> wrote: >> On 13 May 2010 03:02, Stuart Halloway <stuart.hallo...@gmail.com> wrote: >>>> >>>> * Decidedly, I have bad feelings when I read about the "magic" of >>>> "coercing" a String first as a URL, and if not possible, fall back and >>>> consider it a local absolute/relative path. I'm "mitigated" in the >>>> sense that either it's too magic and should got rid of, either it's >>>> interesting and could be promoted as a behaviour in the predefined >>>> Coercions ? >>> >>> This is good magic. The space of strings that look like file URLs is >>> disjoint from those that look like paths, and both are reasonable >>> expectations (based on my ad hoc survey of other languages.) >> >> They are actually not disjoint: >> >> $ mkdir -p "http://www.example.org/cgi-bin/" [...] > I'm comfortable with the behavior implied for these corner cases.
So if program runs from a particular directory and references files as file:///some/file, then if someone can create a directory called file: in that directory with some/file inside that, the program will suddenly try to access the wrong thing? Seems suspicious to me. -- Michael Wood <esiot...@gmail.com> -- 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