Ok, I see where you are coming from now, sorry.
> I hope it won't be that syntax either, as a ':' already has a very > important > meaning in Python: it starts a block. That's true. Even thought it shouold be inambiguous I think that fact alone will make sure Guido will never accept something like that into the language... I guess, if one already has a syntax and can't make up a better one it stays as it is... (perhaps optionally dropping the cdef keyword and allowing typing within for-loops would make it more friendly though). On the other hand: Automatic type inference within functions is a real possibility. I don't see type inference on the function arguments though (not of exportable functions at least), in fact, unless the arguments are typed one often couldn't infer the types of the body variables either. So using the PEP on the function arguments and leaving all variables in the body without type declaration might do the trick. Note: This is for the case the one uses Cython to speed up calculations etc.. when wrapping C code you probably want to manually type the code for type-checking purposes etc, but in that case the C syntax is "most natural" anyway because the audience will be C coders... Dag Sverre _______________________________________________ Cython-dev mailing list [email protected] http://codespeak.net/mailman/listinfo/cython-dev
