<div dir="ltr"><div dir="ltr">On Fri, Dec 11, 2020 at 1:12 PM Aaron Meurer <<a href="mailto:asmeurer@gmail.com">asmeurer@gmail.com</a>> wrote:<br></div><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">On Fri, Dec 11, 2020 at 1:47 AM Eric Wieser <<a href="mailto:wieser.eric%2Bnumpy@gmail.com" target="_blank">wieser.eric+numpy@gmail.com</a>> wrote:<br>
><br>
> > you might want to discuss this with us at the array API standard<br>
> > <a href="https://github.com/data-apis/array-api" rel="noreferrer" target="_blank">https://github.com/data-apis/array-api</a> (which is currently in RFC<br>
> > stage). The spec uses bool as the name for the boolean dtype.<br>
><br>
> I don't fully understand this argument - `np.bool` is already not the boolean dtype. Either:<br>
<br>
The spec does deviate from what NumPy currently does in some places.<br>
If we wanted to just copy NumPy exactly, there wouldn't be a need for<br>
a specification.</blockquote><div><br></div><div>I wouldn't take that as a premise. Specifying a subset of the vast existing NumPy API would be a quite valuable specification in its own right. I find the motivation for deviation laid out in the <a href="https://data-apis.github.io/array-api/latest/purpose_and_scope.html#introduction">Purpose and Scope</a> section to be reasonably convincing that deviation might be needed <i>somewhere</i>. The question then is, is <i>this</i> deviation supporting that stated motivation, or is it taking the opportunity of a redesign to rationalize the names more to our current tastes? Given the mode of adopting the standard (a separate subpackage), that's a reasonable choice to make, but let's be clear about the motivation. I submit that keeping the name `bool_` does not make it any harder for other array APIs to adopt the standard. It's just that few people would design a new API with that name if they were designing a greenfield API.</div></div><div><br></div>-- <br><div dir="ltr" class="gmail_signature">Robert Kern</div></div>