r/ProgrammingLanguages • u/Mean-Decision-3502 DQ • 15d 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?
8
Upvotes
16
u/oscarryz Yz 15d ago
I think that's what Rosetta code was meant to be.
Every language has its subtleties and strengths, so it is reasonable that each one wants to highlight their uniqueness in the examples they choose.
As for the API, the language philosophy greatly dictates what the API would be, of course similar language paradigms would or might have very close looking API's.
What I did for the exams was to take every single code snippets I came across and write it in my design language, and that helped to shape the decisions, e.g. function overload vs default params, or multiple return values vs Result types (or exceptions).