Is there such a thing as a function that is a no-op (and returns
nothing which I guess is always mandatory) for any arguments?
noop(args...; kwargs...) = nothing
I’m wondering if either
- something like this exists or
- this is something so simple that it’s not worth bothering to put in the standard library
- this isn’t something you should ever do because [reasons]
I suspect it’s most likely #4 . This is in the context of a function with a function-typed arg that I’d like to have no-op as the default.