I have two functions
"This is my docstring for `add_1(x)`"
add_1(x) = x + 1
"This is my docstring for `add_2(x)`"
add_2(x) = x + 2
The code of the two functions is strikingly similar, so that in Julia there must be a clever way of automating their creation.
Side question: If these functions were generated programmatically, how would errors work out? Usually the stack trace shows a line number in the originating file, but here several functions are generated from the same line. Would it always show the same line number as well?