3 ms·
They chose c++ because the web spec implies object oriented design.
by throwaway48476 1y ago
They chose c++ because the web spec implies object oriented design.
- IshKebab 1y agoNo they didn't. It's C++ because the primary author was most familiar with C++ and only allowed C++ in SerenityOS. https://ladybird.org/#:~:text=The%20choice%20of%20language%20was,of%20modern%20C%2B%2B%20to%20maintain. https://ladybird.org/#:~:text=The%20choice%20of%20language%2...
- throwaway48476 1y agoThat was the answer I remember Andreas give in a update video to answer the "why not rust" question.
- IshKebab 1y agoThat doesn't really make sense to me either. Even if WebIDL is inheritance based, that is going to be processed automatically so you can easily use codegen to make the resulting interface nice in Rust, in a way that would be relatively difficult if you were hand-writing it.