On Fri, Jun 19, 2009 at 10:41 PM, Greg Ewing<[email protected]> wrote: > Robert Bradshaw wrote: > >> IIRC part of the motivation for int[:,:] syntax rather than >> special_name[int, ndim=2] was that the former is actually easier for >> humans to parse. Personally, it seems a natural extension of the int >> [50] syntax. > > I would be happier if it followed the C pattern more > closely by appearing on the right instead of the left > in a declaration, i.e. > > cdef int my_array[:,:] > > As long as colons or ellipses are always used in this > form of declaration (am I right in thinking that's the > case?) then this is distinguishable from a plain array > declaration. >
BTW, that's also (one of) the Fortran pattern, the second below... type, DIMENSION(bound) [,attr] :: name type [,attr] :: name (bound) -- Lisandro Dalcín --------------- Centro Internacional de Métodos Computacionales en Ingeniería (CIMEC) Instituto de Desarrollo Tecnológico para la Industria Química (INTEC) Consejo Nacional de Investigaciones Científicas y Técnicas (CONICET) PTLC - Güemes 3450, (3000) Santa Fe, Argentina Tel/Fax: +54-(0)342-451.1594 _______________________________________________ Cython-dev mailing list [email protected] http://codespeak.net/mailman/listinfo/cython-dev
