On 1/02/20 12:34 am, John Skaller2 wrote:
Ok, but now the syntax is made very context sensitive. To interpret it correctly, you have to know “ob” is not a type.
Yes, Cython mostly follows C declaration syntax, and C also has this property.
In C this would not work because there is no default type,
Yes, there is -- the default type in C is int. This is a valid function definition in C: f(x) { } It's equivalent to int f(int x) { }
And my translator script got fooled, because it assumes any single identifier used as a parameter is a type,
Then it's making an incorrect assumption. -- Greg _______________________________________________ cython-devel mailing list cython-devel@python.org https://mail.python.org/mailman/listinfo/cython-devel