change dont_load=True to load=False

Issue #1470 resolved
Former user created an issue

It isn't poor style to not eschew boolean variables that don't read in the negative.

Wouldn't e.g. "load=False" read less poorly than "dont_load=True"? Semantics are not lost, and you don't miss the bonus of not needing to munge the English.

Comments (6)

  1. Former user Account Deleted

    It probably seems more descriptive because you're expressing the exception to the rule.

    grep also reveals dont_expire_missing and dont_instrument (no_instrument), and there may well be other with more subtle names.

  2. Mike Bayer repo owner

    after the change, the value of "dont_load" was apparent as it is the name of a particular behavior that is "special", and "dont_load" is the name of this behavior. its much more awkward to name a test "test_load_equals_false" than "test_dont_load". but alas. 5c9fec286ed5388ebe4bdc9dda5cd033e437c7ce

  3. Mike Bayer repo owner

    unless you consider the maxdb no_minvalue/no_maxvalue params. but that is because MaxDB names them NOMINVALUE/NOMAXVALUE.

  4. Log in to comment