Open hdavid16 opened 1 year ago
@pbayer, How do we want to handle this? Should we just constrain process ids to be Union{Number, Symbol, String}
or do you want to define a struct? Something like...
abstract type AbstractID end
struct ProcessID{T} <: AbstractID
id::T
end
https://github.com/JuliaDynamics/DiscreteEvents.jl/blob/4a9fab45a9af19c7d940a48714afb707b2e7598d/src/types.jl#L139-L140
A user could use
Prc(::Function, ::Function, arg...; kw...)
, making the outcome ambiguous. We should probably define a type for the Process ID