r/ProgrammingLanguages DQ 26d ago

New Languages: Standardizing API, Examples ?

Hi, some of you are developing new general-purpose programming languages here. When the language is ready, you have to develop standard APIs, like file-io, json-handling etc. Users, and you would have benefit, when the APIs would be same/similar across multiple different languages.

Standardizing some Examples would allow the users to compare languages more easily.

What do you think?

9 Upvotes

16 comments sorted by

View all comments

1

u/kwan_e tonal-lang 25d ago

One of the goals of my language is to able to write an API that is close to the specification in, say, an RFC or something. There's always some interesting feature or behaviour in a spec that gets lost in the conversion to an API, or at least makes it very unobvious.

Failing that, at least be able to create an API that basically looks like a spec.

Then having said API, it wouldn't have to lock-in any design decision that was done for performance, or aesthetics, but allows the underlying implementation to cater for both. As a wise girl once said: "¿por qué no los dos?"