On Fri, Feb 5, 2010 at 1:08 PM, Robert Bradshaw
<[email protected]> wrote:
> On Feb 5, 2010, at 10:58 AM, Kurt Smith wrote:
>
>> Along with that: we discussed using the ampersand as the conjunctive
>> for the different stride and memory access flags (I thought it was
>> more pythonic, although less 'C'-like), or we could also go with the
>> pipe (|) symbol instead, ala C flags. If it's already decided and
>> behind us, then I'm fine with it.
>
> Personally, I think the best would be "and" a la Python. When I see |
> and &, I instinctively parse that as C flags (and the example you gave
> threw me for a loop for a sec, but I didn't want to bring it up
> myself.) Of course using | as in C will probably be unfamiliar to
> those with only Python experience, and doesn't read as well.
As I recall, we went with '&' since it has some pedigree in
python-dev discussions on combining abstract base classes (I can't
recall the context), although I can't find the email thread ATM, and
it isn't implemented in Python. The "and" keyword has the benefit of
reading better and making it clearly a conjunction of objects, and
less a conjunction of C-flags. I'm fine with either, and will gladly
implement whatever is decided ('&' is implemented currently, but it's
easy to change). I'm sure Dag has some thoughts on the matter.
Kurt
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev