История изменений
Исправление sanyo1234, (текущая версия) :
автор Java заявлял, что сожалеет о добавлении наследования в свой язык, сама по себе практика композиции не вызывает отторжения.
Речь о Джеймсе Гослинге? Можно пруфы?
Вот что я нашёл:
https://hackernoon.com/an-interview-with-dr-java-james-gosling-the-creator-of-java-1z2d37hr
Grigory:
As software developers and software consultants, we're trying to organize a community in Russia: Python, Ruby, Java, and Go communities. We want to help our fellow developers by conducting interviews that highlight essential questions for our industry. I think that your experience and your work on Java can help developers to become better. So let's try to help them!
Some languages, like Go, leave out classes and inheritance, while others experiment with features like traits in Rust. As a language designer, what do you think is a modern, general-purpose, reasonable way for a programming language to do composition?
James:
I don't think I wouldn't do classes. I actually find that classes work pretty well for composition. I don't really have any good, clear ideas for what to do differently. Some of the things that I would do differently are a little strange. In C, there are macros, which are pretty much a disaster because the macros are not part of the language; they're kind of outside of it. The folks at Rust tried to do a decent job of fitting macros in the language.
Суть слов Гослинга: Если бы я заново дизайнил Java, то снова бы сделал классы. Про наследование он тут вообще ничего не говорит, значит, сделал бы его точно так же. А про композицию упоминает лишь то, что классы можно использовать и для композиции (это и так очевидно).
Итого: никакого сожаления о фиче наследования у Гослинга в этом интервью нет и в помине. Композицию он тоже тут никак особо не жалует и не пиарит.
Исходная версия sanyo1234, :
автор Java заявлял, что сожалеет о добавлении наследования в свой язык, сама по себе практика композиции не вызывает отторжения.
Речь о Джеймсе Гослинге? Можно пруфы?
Вот что я нашёл:
https://hackernoon.com/an-interview-with-dr-java-james-gosling-the-creator-of-java-1z2d37hr
Grigory:
As software developers and software consultants, we're trying to organize a community in Russia: Python, Ruby, Java, and Go communities. We want to help our fellow developers by conducting interviews that highlight essential questions for our industry. I think that your experience and your work on Java can help developers to become better. So let's try to help them!
Some languages, like Go, leave out classes and inheritance, while others experiment with features like traits in Rust. As a language designer, what do you think is a modern, general-purpose, reasonable way for a programming language to do composition?
James:
I don't think I wouldn't do classes. I actually find that classes work pretty well for composition. I don't really have any good, clear ideas for what to do differently. Some of the things that I would do differently are a little strange. In C, there are macros, which are pretty much a disaster because the macros are not part of the language; they're kind of outside of it. The folks at Rust tried to do a decent job of fitting macros in the language.
Суть слов Гослинга: Если бы я заново дизайнил Java, то снова бы сделал классы. Про наследование он тут вообще ничего не говорит, значит, сделал бы его точно так же. А про композицию упоминает лишь то, что классы можно использовать и для композиции (это и так очевидно).
Итого: никакого сожаления о фиче наследования у Гослинга в этом интервью нет и в помине.