Traitor.jl icon indicating copy to clipboard operation
Traitor.jl copied to clipboard

Default values

Open andyferris opened this issue 9 years ago • 1 comments

Allow default values in function definitions

andyferris avatar Jul 07 '16 10:07 andyferris

Actually... these are a little interesting... I think they would have to be added during the thunk (for standard multiple dispatch) yet multiple trait-based submethods might want (or might define) different default arguments.

Perhaps an explicit check that the default arguments agree between submethods (not methods) is necessary...

andyferris avatar Jul 07 '16 10:07 andyferris