Here we say there is a parameter "name" which must be supplied, and that is later used.
If we instead say that parameters can be lists we can allow the first value to be the name, and the second a default value if nothing is actually passed, like so:
I've not yet experimented with supplying defaults in the non-final arguments, because that could screw things up. But for simple cases like the one above it seems to work.
Once complete this will close #130, however I need to add test-cases..
We typically define a function like this:
Here we say there is a parameter "name" which must be supplied, and that is later used.
If we instead say that parameters can be lists we can allow the first value to be the name, and the second a default value if nothing is actually passed, like so:
These could be used like so:
I've not yet experimented with supplying defaults in the non-final arguments, because that could screw things up. But for simple cases like the one above it seems to work.
Once complete this will close #130, however I need to add test-cases..