Fused Types Syntax

For fused types we recently decided to go for another syntax. So the current syntax is

    ctypedef cython.fused_type(float, double, long double) floating_t

and we want to change it to

cdef fused floating_t:
    long double

I think this syntax is a lot better as it doesn’t look awkward, it will be easy to add types and you don’t have to worry about breaking lines.


About markflorisson

Blog for the Cython gsoc 2011
This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s