(评论)
(comments)

原始链接: https://news.ycombinator.com/item?id=43455698

Hacker News 最新 | 过去 | 评论 | 提问 | 展示 | 招聘 | 提交 登录 探索 Rust 中的动态分派 (alschwalm.com) 4 分,来自 ibobev,1 小时前 | 隐藏 | 过去 | 收藏 | 1 评论 shmerl 22 分钟前 [–] 如果我没记错的话,Rust 坚决要避免多重继承的概念,为的是避免菱形问题。组合优于继承是建议的原则。 回复 加入我们,参加 6 月 16-17 日在旧金山举办的 AI 初创公司学校! 指南 | 常见问题 | 列表 | API | 安全 | 法律 | 申请 YC | 联系我们 搜索:

相关文章
  • (评论) 2025-03-21
  • (评论) 2025-03-24
  • (评论) 2025-03-19
  • (评论) 2025-03-23
  • 探索 Rust 中的动态分发 2025-03-27

  • 原文
    Hacker News new | past | comments | ask | show | jobs | submit login
    Exploring Dynamic Dispatch in Rust (alschwalm.com)
    4 points by ibobev 1 hour ago | hide | past | favorite | 1 comment










    If I recall correctly, Rust decisively wanted to avoid multiple inheritance concept, in order not to deal with the diamond problem.

    Composition over inheritance is the suggested principle.







    Join us for AI Startup School this June 16-17 in San Francisco!


    Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact



    Search:
    联系我们 contact @ memedata.com