• 0 Posts
  • 7 Comments
Joined 2 years ago
cake
Cake day: July 7th, 2023

help-circle





  • 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.