Re: [Cython] Fused types syntax

2011-06-03 Thread Dag Sverre Seljebotn
On 06/02/2011 11:51 PM, Robert Bradshaw wrote: On Thu, Jun 2, 2011 at 2:42 PM, mark florisson wrote: On 2 June 2011 23:31, Robert Bradshaw wrote: On Thu, Jun 2, 2011 at 2:18 PM, Dag Sverre Seljebotn wrote: On 06/02/2011 06:39 PM, Robert Bradshaw wrote: In looking at merging fused types,

Re: [Cython] Fused types syntax

2011-06-02 Thread Robert Bradshaw
On Thu, Jun 2, 2011 at 2:42 PM, mark florisson wrote: > On 2 June 2011 23:31, Robert Bradshaw wrote: >> On Thu, Jun 2, 2011 at 2:18 PM, Dag Sverre Seljebotn >> wrote: >>> On 06/02/2011 06:39 PM, Robert Bradshaw wrote: In looking at merging fused types, it's time to nail down the syntax

Re: [Cython] Fused types syntax

2011-06-02 Thread mark florisson
On 2 June 2011 23:31, Robert Bradshaw wrote: > On Thu, Jun 2, 2011 at 2:18 PM, Dag Sverre Seljebotn > wrote: >> On 06/02/2011 06:39 PM, Robert Bradshaw wrote: >>> >>> In looking at merging fused types, it's time to nail down the syntax. >>> The current implementation is >>> >>>     ctypedef cytho

Re: [Cython] Fused types syntax

2011-06-02 Thread Robert Bradshaw
On Thu, Jun 2, 2011 at 2:18 PM, Dag Sverre Seljebotn wrote: > On 06/02/2011 06:39 PM, Robert Bradshaw wrote: >> >> In looking at merging fused types, it's time to nail down the syntax. >> The current implementation is >> >>     ctypedef cython.fused_type(list, dict, object) fused_t >> >> This requ

Re: [Cython] Fused types syntax

2011-06-02 Thread Nathaniel Smith
On Jun 2, 2011 2:18 PM, "Dag Sverre Seljebotn" wrote: > If you only want this allowed in typedefs, then, being puristic, I think that really a "fused type" is really different from a ctypedef, and that it would warrant something like a new keyword. > > cdef fusedtype [list, dict, object] fused_t

Re: [Cython] Fused types syntax

2011-06-02 Thread Dag Sverre Seljebotn
On 06/02/2011 06:39 PM, Robert Bradshaw wrote: In looking at merging fused types, it's time to nail down the syntax. The current implementation is ctypedef cython.fused_type(list, dict, object) fused_t This requires an addition to the grammer to allow the "call" syntax in a type declaratio

Re: [Cython] Fused types syntax

2011-06-02 Thread Robert Bradshaw
On Thu, Jun 2, 2011 at 1:07 PM, mark florisson wrote: > On 2 June 2011 18:39, Robert Bradshaw wrote: >> In looking at merging fused types, it's time to nail down the syntax. >> The current implementation is >> >>    ctypedef cython.fused_type(list, dict, object) fused_t >> >> This requires an add

Re: [Cython] Fused types syntax

2011-06-02 Thread mark florisson
On 2 June 2011 18:39, Robert Bradshaw wrote: > In looking at merging fused types, it's time to nail down the syntax. > The current implementation is > >    ctypedef cython.fused_type(list, dict, object) fused_t > > This requires an addition to the grammer to allow the "call" syntax in > a type dec

Re: [Cython] Fused types syntax

2011-06-02 Thread Chris Colbert
Not that my opinion carriers any weight, but I'm +1 on this. On Thu, Jun 2, 2011 at 11:39 AM, Robert Bradshaw < rober...@math.washington.edu> wrote: > In looking at merging fused types, it's time to nail down the syntax. > The current implementation is > >ctypedef cython.fused_type(list, dic

[Cython] Fused types syntax

2011-06-02 Thread Robert Bradshaw
In looking at merging fused types, it's time to nail down the syntax. The current implementation is ctypedef cython.fused_type(list, dict, object) fused_t This requires an addition to the grammer to allow the "call" syntax in a type declaration, as well as special casing to make it allowed on