r/ProgrammingLanguages • DQ • Jul 16 '26

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?

11 Upvotes

16 comments sorted by

View all comments

Show parent comment

1

u/Inconstant_Moo 🧿 Pipefish Jul 17 '26

That depends on the code. Writing a date/time library can never under any circumstances be fun.

1

u/Tasty_Replacement_29 Bau Jul 27 '26

I actually found it fun to write a date library... if you concentrate on the essentials only (formatting and parsing, and Gregorian calendar only; without daylight saving and timezone stuff etc.). This whole "DateTime library" is only 300 lines.