[Cython] cython-devel: array declaration problems with current trunk

Robert Bradshaw robertwb at math.washington.edu
Tue Aug 5 03:32:43 CEST 2008


On Aug 4, 2008, at 6:18 PM, Greg Ewing wrote:

> Dag Sverre Seljebotn wrote:
>
>> I don't think the [] syntax buys anything above a regular
>> pointer notation? If so, removing support for int[]-notation  
>> altogether
>> would get rid of the issue and lead to a cleaner grammar.
>
> The current declaration syntax has the advantage that it's
> the same as in C, so people familiar with C don't have to
> learn anything new. This would be a step away from that,
> although a fairly minor one.
>
> Another consideration is how much existing code it would
> break, which could be quite a lot.

+1

Also, c_type[] vs. object_type[] are easily discerned, and they both  
have similar (high level) meaning.

- Robert


More information about the Cython-dev mailing list