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

2014-11-11 Thread Daniele Nicolodi
On 07/11/14 08:30, Ian Henriksen wrote: > The syntax from Numba is a really good way to do this as well. > It is just as clear and doesn't conflict with C. Strictly speaking, > it isn't Python, but it would be nice to have similarities in the > syntax for the different packages. What would be the

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

2014-11-11 Thread Daniele Nicolodi
On 11/11/14 17:55, Daniele Nicolodi wrote: > On 07/11/14 08:30, Ian Henriksen wrote: >> The syntax from Numba is a really good way to do this as well. >> It is just as clear and doesn't conflict with C. Strictly speaking, >> it isn't Python, but it would be nice to have similarities in the >> synta

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

2014-11-10 Thread Robert Bradshaw
On Sun, Nov 9, 2014 at 1:29 PM, Nils Bruin wrote: > On Saturday, November 8, 2014 12:15:02 PM UTC-8, Sturla Molden wrote: >> >> Presumably Cython >> needs C and C++ function and method pointer syntax for wrapping C and C++ >> libraries, so why add another one? > > > I think that's a valid point. T

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

2014-11-07 Thread Robert Bradshaw
On Thu, Nov 6, 2014 at 11:30 PM, Ian Henriksen wrote: > On Thursday, November 6, 2014 9:48:53 PM UTC-7, 1989lzhh wrote: >> >> > 在 Nov 7, 2014,02:56,Robert Bradshaw 写道: >> > >> > [Cc'ing elsewhere for more feedback. Also top-posting for initial >> > impressions before the discussion.] >> > >> > He

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

2014-11-07 Thread Ian Henriksen
On Thursday, November 6, 2014 9:48:53 PM UTC-7, 1989lzhh wrote: > > > > > > 在 Nov 7, 2014,02:56,Robert Bradshaw > > 写道: > > > > [Cc'ing elsewhere for more feedback. Also top-posting for initial > > impressions before the discussion.] > > > > Here's some proposed function pointer syntaxes; whi

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

2014-11-06 Thread Robert Bradshaw
On Thu, Nov 6, 2014 at 1:07 PM, Nils Bruin wrote: > On Thursday, November 6, 2014 10:57:23 AM UTC-8, Robert Bradshaw wrote: >> >> cdef float -> float F >> cdef (float -> float, float, float) -> float G >> cdef (char*) -> (float -> float, float, float) -> float H > > Is there any preced