<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Sat, May 23, 2015 at 2:11 AM, daniela florescu <span dir="ltr"><<a href="mailto:dflorescu@me.com" target="_blank">dflorescu@me.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="word-wrap:break-word"><div><span class=""><blockquote type="cite"><div><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span><br>
</span>The unfortunate choice of those two keywords (“for” and “return” instead of “from” and “select’) in XQuery had<br>
such a HUGE impact on adoption (or not)  of  XQuery, it’s amazing.<br>
<br>
It’s not too late to add the macros…..and make XQuery understandable to people who only want to see<br>
<br>
select… from ...<br>
<br></blockquote><div><br></div><div>Big mistakes.</div></div></div></div></div></blockquote><div><br></div></span>Ihe, </div><div><br></div><div>THAT particular choice of keywords (FOR/RETURN… instead of FROM/SELECT)…. is  MY mistake ENTIRELY. 100% MINE.</div><div><br></div><div>I regretted that (daily) in the past 16 years …..and did LOTS of penance for it…..please believe me.</div><div><br></div><div></div></div></blockquote><div><br></div><div>Methinks you are underestimating peoples hypocrisy.  Take something like <br><br></div><div>Select album from music_Artist where name = "The Police"<br></div><div><br></div><div>This is what passes without complaint in MQL a JSON based query language (example from <a href="http://wiki.freebase.com/wiki/MQL">http://wiki.freebase.com/wiki/MQL</a>)<pre class="">{
  "type": "/music/artist",
  "name": "The Police",
  "album": []
}<br></pre></div><div><br></div><div>If I may revert back to the SQL/NoSQL issue. People perceive SQL as just that. A query language for querying  structured data and in their minds that subsumes semi structured data. They don't see it as a codification of relational algebra that operates on relations. If they did they might be more hesitant about expecting anything good to result from applying SQL to things that are not relations. That however, would require the learning of a little bit of theory and unfortunately we have to co-exist with people who write code for a living but passionately believe that being uneducated is a virtue. These same people propagate blogs illustrated with simplistic examples and before you know it Stupid Is As Stupid Does becomes the defacto paradigm.<br><br></div><div>So don't beat yourself up about it.<br></div><div><br> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="gmail_extra"><div>I could tell you the story… maybe it’s fun, maybe it’s interesting from a technology/history perspective.</div><div><br></div><div><br></div><div>=====</div><div><br></div><div>It was 1999, and I was a researcher in INRIA, studying query languages and query processing for semi-structured data. (since 1996 when I was in ATT Research)</div><div>I was stuck in Paris, where nothing ever happened in technology, and I was dreaming of going to Sillicon Valley, where EVERYTHING happened.</div><div>So, I managed to become a visiting scientist at IBM Almaden in Sillicon Valley.</div><div>My boss at that time, Mike Carey (now professor it Univ. Irvine), just decided to leave IBM for a startup — Propel.</div><div>He didn’t know what to do with me (I was his responsibility :-) …., so he took me by the hand to Don Chambelin (of SQL fame)</div><div>       across the hall, and he asked me: “Why don’t  you work with Don Chamberlin on this XML query thing, after I am gone ?”</div><div>That’s what I did, together with Jonathan Robie, and the result was Quilt, the precursor of XQuery.</div><div>Well, it happened that my PhD thesis was on query languages and query processing of object-oriented languages, and OQL was a functional language, above</div><div>and before being a query language. Hence, XQuery became a functional language.</div><div>Well, in the same time, I was teaching in a French university the ML programming language, a long love of mine, as programming languages are concerned.</div><div>Here is the catch: ML used the words FOR and RETURN for monoid comprehension….which both the Select-From-Where of SQL and the FLOWR expression are.</div><br></div></blockquote><div><br></div><div>Is that also where we got typeswitch from... ML?<br></div><div> </div></div></div></div>