In thinking about 1.0, this would be a chance to make
backwards-incompatible changes. One thing that has always bothered me
is the C-delclarator decoration for specifying complex types.
Specifically,

    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

In this case our grammar could be almost identical to the Python
grammar, with the addition of a "type declaration" that could occur in
certain situations plus a new type token. Does anyone see any issues
with this?

We could have a period where we warned if declarators were used, or
simply disallow them outright before changing the meaning. It'd be
easy to create a tool one could run on your sources that would
"expand" such declarations as well.

- Robert
_______________________________________________
cython-devel mailing list
cython-devel@python.org
https://mail.python.org/mailman/listinfo/cython-devel

Reply via email to