• Frezik@lemmy.blahaj.zone
    link
    fedilink
    English
    arrow-up
    0
    ·
    11 days ago

    The point of the article is about how IDE’s can’t validate certain things as you type them in this order. The example of a string length function could be replaced by any other API.

    • Eager Eagle@lemmy.world
      link
      fedilink
      English
      arrow-up
      1
      ·
      edit-2
      11 days ago

      The example of a string length function could be replaced by any other API

      I don’t know about that, len is a built-in – like str, abs, bool. There are only a few of them and they’re well known by people familiar to the language (which seems to exclude the article author). Their use is more about the language itself than about what to expect from a particular API.

      In fact, most Python APIs that go beyond built-in usage actually look much more object-oriented with “left-to-right” object.method() calls. So this argument seems silly and goes away with some familiarity with that language.