Re: [Cython] New function (pointer) syntax.

2014-11-08 Thread C Blake
>But I admit it's hard to come up with an objective measure for how >good a syntax is...if it's natural to you than that's great. I think those queries you mention will mostly be biased by the squeakier wheels being more beginning people and that's not a very good argument or metric. I agree an o

Re: [Cython] New function (pointer) syntax.

2014-11-07 Thread C Blake
Robert Bradshaw robertwb at gmail.com wrote: >Quick: is that a pointer to an array or 10 pointers to ints? Yes, I >know what it is, but the thing is without knowing C (well) it's not >immediately obvious what the precedence should be. If you're gonna pick something e.g like that, it should not be

Re: [Cython] New function (pointer) syntax.

2014-11-06 Thread C Blake
I think you should just use the C declarator syntax. Cython already allows you to say "cdef int *foo[10]". Declarators aren't bad - just poorly taught, though I can see some saying those are the same thing. More below. I absolutely like the declarator one the most, and the lambda one second most