New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fused types: companion types #2646

Open
jbrockmendel opened this Issue Oct 6, 2018 · 0 comments

Comments

Projects
None yet
1 participant
@jbrockmendel

jbrockmendel commented Oct 6, 2018

Trying to move code to use fused types instead of tempita, I have a lot of cases that look like:

cdef inline void append_data_{{dtype}}({{name}}VectorData *data,
                                       {{arg}} x) nogil:

In this context it is straightforward to make a fused type that encapsulates all the variants of {{name}}VectorData, but each of those variants is paired with a specific {{arg}} type.

Is there a supposed way to write this function using fused types?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment