2 ms·
"If your language is well designed, then it would be easy to create a 'string' library or a 'date' library." It may be easy to create such things with a new la
by makecheck 18y ago
"If your language is well designed, then it would be easy to create a 'string' library or a 'date' library."
It may be easy to create such things with a new language, but you shouldn't have to.
I consider it good enough if established libraries can be linked to new languages (e.g. via C). That way, the unique features of the language can be more readily tested in existing tools. For example, I may have a program with a critical algorithm, that might be faster in a new language; if the language simply links to C, I can easily test that algorithm in the new language, without having to replace the rest of the program and the libraries it uses.
Note that I'm not saying it's bad for new languages to be capable of implementing something like a 'string' or 'date' in a simple way. In fact, such practical examples may help when learning the new language. It's just a question of whether or not that is mandatory before anything useful can be done with the new language.