[Cython] Declaration syntax change

Greg Ewing greg.ewing at canterbury.ac.nz
Thu Oct 3 14:10:24 CEST 2013


Robert Bradshaw wrote:
>     cdef int *a, b, c, *d[3]
> 
> is IMHO quite ugly but also adds a lot of complexity to the parser.
> What if instead we required
> 
>     cdef int* a
>     cdef int b, c
>     cdef int[3]* d

What would be the benefit of this? You're proposing to change
from something identical to C declaration syntax, which is
second nature for a great many people, to something that
looks deceptively like C syntax but isn't.

I can't see that causing anything other than a massive
amount of confusion, anguish and hair-tearing.

-- 
Greg


More information about the cython-devel mailing list