Closed
Description
While exploring the stdlib
I discovered the optval
function and shortly after a routine which could have made use of it but it doesn't. Should we search for such optional arguments and replace the if
-else
-blocks with the optval
-function?
If there are no other plans which would interfere with this, I think this should be done because it shortens the code which makes the code easier to understand.
If I find time to build the stdlib
I could do the job and open a PR. Please tell me if I have to keep something in mind, otherwise I will just try it.