Closed gdalle closed 1 year ago
Yes, option two is currently the only way. I haven't thought about making option one work, but I'm a bit hesitant to add that because I think the lines are going to get very long very quick; especially with a bit longer function names and more than one argument. The general idea is to pair the interface requirement with the docstring, which I sadly couldn't easily make work in the macro itself (docstring lowering is a bit weird). I'll have to add an example to the docs showing how to do that better :thinking:
Adding an example with more than one function would be good though!
Would something like
@required MyInterface begin
f(...)
g(...)
end
Work for you?
Yes that's perfect :)
Awesome package, it's simple enough to use that I wanna give it a test run in HMMs.jl!
Small question: how does one specify that multiple functions are part of the interface? My two best guesses are
or
Judging by the code I'm leaning towards option 2 but I'm not a macro expert. Also, it may be cool to allow option 1?