You can set a default value for ordered parameters like so:
I think it should be called optional
parameters.
You can set a default value for ordered parameters like so:
I think it should be called optional
parameters.
Thank you for catching that. You’re right, that was an error in the term. That section is about optional parameters, but the term I should have used there was “positional” rather than “ordered”. (See chapter 5 for more on positional vs. named parameters.) I’ve updated the text source and so the online version should get updated soon, too.