3 ms·
I'm not a huge fan after a quick read - the new syntax adds too many new keywords for my tastes e.g. type, inherits, abstract, lang, obj, func etc. I'm of the s
by jlangenauer 16y ago
I'm not a huge fan after a quick read - the new syntax adds too many new keywords for my tastes e.g. type, inherits, abstract, lang, obj, func etc. I'm of the school of thought that words with semantic meaning should be used as much as possible for expressing the logic and meaning of the program itself, rather than the language. Otherwise, it becomes harder to separate the actual program from the language - this is one of Java's problems.
Particularly take the class declarations as an example:
type ListClass : class inherits public ListBase, private virtual ListImpl
{ /* member declarations */ }
adds nothing but verbosity to the C++ declaration:
class ListClass : public ListBase, private virtual ListImpl
{ /* member declarations */ };
- alextgordon 16y ago"Make everything as simple as possible, but not simpler" seems a good rule to design languages by. The common case should be expressible with as little syntactic friction as possible, without making the language ambiguous or unreadable. ": class inherits public" is just 23 characters of pointless line noise.
- eru 16y agoPerhaps inheritance shouldn't be the common case in the first place?