The STUFF part could be different in other parts of the code. In that case, we can try to generalise the function (and give it a better name) to allow this.
With a do-block, we might be able to have a visually pleasant syntax. E.g.,
wrapper_stuff(...) do ...
# STUFF
end
and then wrapper_stuff is implemented as
function wrapper_stuff(STUFF::Function, ...)
...
try
STUFF(...)
finally
...
end
end
The
set_tbl_col_impl
function runsThe
STUFF
part could be different in other parts of the code. In that case, we can try to generalise the function (and give it a better name) to allow this.With a do-block, we might be able to have a visually pleasant syntax. E.g.,
and then
wrapper_stuff
is implemented asPS. Consider name
as_table
.