Skip to content
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

Added the possibility to have Type parameters for smart type dispatching #58

Merged
merged 2 commits into from
May 4, 2023

Conversation

liuq
Copy link

@liuq liuq commented Jan 21, 2023

Type params (i.e., ::Type{T} anonymous parameters), which are very useful for handling polymorphism-like multiple dispatching, can be simply discarded from the list of arguments since they are used only for the method dispatching and do not have any sensible nor useful value.

In order to do that, the utils.jl file has been modified so that when such a parameter is present (whose name is nothing) it is skipped.

Some tests have been added to check whether type parameters are properly handled.

Luca Di Gaspero added 2 commits January 21, 2023 12:53
…ing.

Type params (i.e., ::Type{T} anonymous parameters) can be simply discarded from the list of arguments since they are used only for the method dispatching and do not have any sensible nor useful value.

Some tests have been added to check whether type parameters are properly handled.
@Krastanov
Copy link
Member

I believe Ben, the original author, might not have the bandwidth to work on ResumableFunctions these days. Thus, I forked the repository into a new Semicoroutines.jl https://github.com/QuantumSavory/Semicoroutines.jl in order to support 1.10 and future julia versions.

@liuq , could you consider making this pull request against the fork?

As this library is an important part of another project of mine, I plan to provide support at least for the next few years. I am certainly interested in having help from other contributors (and maybe merging things back here if ResumableFunctions.jl is revided).

A similar fork is being prepared for SimJulia

@BenLauwens BenLauwens merged commit 96e46a6 into JuliaDynamics:master May 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants