Comment on Left to Right Programming

<- View Parent
eager_eagle@lemmy.world ⁨4⁩ ⁨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 deviate from built-in usage actually look much more object-oriented with “left-to-right” object.method() calls.

source
Sort:hotnewtop