This is an archive of the discontinued Mercurial Phabricator instance.

engine: 'if not, else' -> 'if, else'
ClosedPublic

Authored by pulkit on Jan 31 2021, 2:35 PM.

Details

Summary

I personally feel that

if x:
    pass
else:
    pass

is easier to read and edit than

if not x:
    pass
else:
    pass

Next patches will add one more if-else clause.

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.

Event Timeline

pulkit created this revision.Jan 31 2021, 2:35 PM
This revision was not accepted when it landed; it landed in state Needs Review.
This revision was automatically updated to reflect the committed changes.