This is an archive of the discontinued Mercurial Phabricator instance.

wireprotov2: derive "required" from presence of default value
ClosedPublic

Authored by indygreg on Sep 28 2018, 8:18 PM.

Details

Summary

If we define a default value for all optional arguments, we no
longer need to explicitly declare whether the argument is required.
Instead, we can derive it from the presence of a default value
callable.

Diff Detail

Repository
rHG Mercurial
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.