<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On 14 May 2018 at 08:24, Ed Kellett <span dir="ltr"><<a href="mailto:e+python-ideas@kellett.im" target="_blank">e+python-ideas@kellett.im</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"><span class="gmail-">On 2018-05-14 05:02, Nick Coghlan wrote:<br>
> The same grammar adjustment that I believe will allow "given" to be used as<br>
> both a postfix keyword and as a regular name would also work for "where".<br>
> However, "where" still has the problem of semantically conflicting with<br>
> SQL's use of it to introduce a filter clause, whereas Hypothesis uses<br>
> "given" to bind names to values (just a little more indirectly than would<br>
> be the case for assignment expressions)<br>
<br>
</span>I suspect that SQL is not high on the list of languages people might<br>
confuse with Python.</blockquote><div><br></div><div>If we used "where" as a name binding keyword, ORM docs like <a href="http://docs.sqlalchemy.org/en/latest/orm/query.html">http://docs.sqlalchemy.org/en/latest/orm/query.html</a>, and <a href="https://docs.djangoproject.com/en/2.0/topics/db/queries/">https://docs.djangoproject.com/en/2.0/topics/db/queries/</a> would need to be modified to explain that "SQL WHERE" and "Python where" do very different things.<br><br></div><div>It's better to just avoid the potential for that problem entirely (either by using a symbolic notation, or by using a different keyword)<br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"> FWIW, as I'm sure will have been mentioned, Haskell<br>
uses "where", and people seem to manage fine with it.<br></blockquote><br></div><div class="gmail_quote">Unfortunately, Haskell's adoption numbers and reputation as a difficult to learn language don't back up that assumption (I doubt that outcome has anything to do with their use of "where", it just means "Haskell uses it that way" can't be credited as evidence that something won't cause confusion)<br></div><br></div><div class="gmail_extra">Cheers,<br></div><div class="gmail_extra">Nick.<br clear="all"></div><div class="gmail_extra"><br>-- <br><div class="gmail_signature">Nick Coghlan   |   <a href="mailto:ncoghlan@gmail.com" target="_blank">ncoghlan@gmail.com</a>   |   Brisbane, Australia</div>
</div></div>