Say what you mean
dev.to·4h·
Discuss: DEV

Use your words

Most programming languages today, barring EsoLangs and the APL family of languages, use English for their APIs.

Some languages’ designer, like for Python and Ruby, went to great lengths to make those languages’ APIs read like a valid English sentence (more or less.)

The thing with using a spoken language for APIs to be consumed by a computer, is that sometimes the meaning of words in the natural language get hijacked into meaning something not quite the same.

A great example for that is the word ‘private’.

In English, the word ‘private’ means one very particular thing: something that is personal, not to be interacted with by anyone other than its owner. Not quite, but not too far removed from a secret.

What’s the point?

Lately, as part of my Elixir-to-F...

Similar Posts

Loading similar posts...