tags → dwim

  • DWIM is consistent

    Dec 27, 2019

    Programming · perl · python · DWIM ·

    Moshe Zadka has been writing a mostly excellent exploration of the Zen of Python for Opensource.com. Not sure I approve of this take on guessing, from The importance of consistency in your Python code: What should the result of 1 + “1” be? Both “11” and 2 would be valid guesses. This expression is ambiguous: there is no single thing it can do that would not be a surprise to at least some people.