Robert Bradshaw schrieb am 06.11.2014 um 08:34: > I'd like to propose a more pythonic way to declare function pointer > types, namelye > > type0 (*[ident])(type1, type2, type3) > > would instead become > > (type1, type2, type3) -> type0 [ident]
Not convinced. Looks quite magic, very different from the C that people would know, and takes a while reading from left to right until you see the "->" which is essentially the only indication of what is happening here. Also, "->" has a widely known meaning in C/C++ which makes the above very confusing. I think in C when thinking about function pointers, and there is no "def ..." keyword indication here that would switch me back to Python (as for signature annotations). I do see the problem of "where did I have to put that '*' again in the C declaration?", but this looks like it will produce more confusion than it avoids. Many (or most?) function pointer type declarations will come from some C library's header file, so it means making it more difficult for users to copy over the declaration. Stefan _______________________________________________ cython-devel mailing list cython-devel@python.org https://mail.python.org/mailman/listinfo/cython-devel