( )⚙ D4790 wireprotov2: derive "required" from presence of default value

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
Lint Skipped
Unit
Unit Tests Skipped