I’d like to be able to right-click on a @Burst function to run it (and only it) in the IDE.
There’s a couple different things we could do here:
Run all specializations
Run the first specialization
My preference is 2.
Functions
Here’s my plan on how we make this work for functions:
Drop @Test from the original function
Generate a zero-argument function with the same name as the original function, add @Test to it, and call the first specialization from it
Add @Ignore to the first specialization.
Classes
And to make this work for classes:
Generate a zero-argument constructor that calls the parameterized constructor with the first specialization
Add @Ignore to the first specialization
Default Arguments
If the user provides default arguments to the parameterized function or constructor, we should use those instead of the first specialization. I think we should do this as a separate step.
I’d like to be able to right-click on a
@Burst
function to run it (and only it) in the IDE.There’s a couple different things we could do here:
My preference is 2.
Functions
Here’s my plan on how we make this work for functions:
@Test
from the original function@Test
to it, and call the first specialization from it@Ignore
to the first specialization.Classes
And to make this work for classes:
@Ignore
to the first specializationDefault Arguments
If the user provides default arguments to the parameterized function or constructor, we should use those instead of the first specialization. I think we should do this as a separate step.