|
|
|
|
|
by amomchilov
941 days ago
|
|
It actually really helps with maintenance. If you have a wrapper for an API (say, that does some logging or whatever), you can use `…` to forward arguments, maintenance free. Perhaps the wrapped function started out with no arg, but then added one. You never took/forwarded a `*vargs` array, so now you have to manually update that. Then perhaps some other function started taking a block. Now you need to add `&block` and forward it. So `…` is a maintenance-free way to forward arguments to functions that are free to change. |
|