I’ll share some advice I was given.
- Define a function
_fun
that does the bulk of the work. Then have methodsfun(a, b, c)
andfun(a, b)
both call_fun
internally but with different pre- and post-processing above and below respectively. - You can use a distinct
struct
rather thannothing
to define methods for your different cases: Application Code Organization - #15 by lmiq.