|
|
|
|
|
by rocqua
1740 days ago
|
|
In python, I love keyword-only arguments for this.
Then the caller has to write: v = calc_formula(ia, ib, is_gain=true)
You also have the option of defining a default value for the argument so the old call-sites don't even need modification. |
|