(评论)
(comments)

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

Hacker News上的一篇文章链接到一篇题为“你需要子类型”(polybdenum.com)的文章。这篇文章已经有一些评论了。一个用户不同意这篇文章的观点,并提到了TypeScript子类型中协变性的问题。另一个用户要求解释文章中“boxed”(装箱)一词的含义。第三个用户回应说,“boxed”通常指堆分配,但在文章中的相关性尚不明确,因为文章似乎将装箱记录等同于动态/结构化类型,但这并不一定正确。最后,还有一个AI创业学校的广告。

相关文章
  • (评论) 2025-03-24
  • 你需要子类型化 2025-03-29
  • (评论) 2025-03-19
  • (评论) 2025-03-22
  • (评论) 2025-03-27

  • 原文
    Hacker News new | past | comments | ask | show | jobs | submit login
    You Need Subtyping (polybdenum.com)
    8 points by speckx 2 hours ago | hide | past | favorite | 3 comments










    I disagree with this article. Subtyping is what we have in TypeScript and it creates a lot of problems due to covariance.


    What is the meaning of the word “boxed” in this article? Bit confused about it.


    Usually it's used for saying something is heap allocated.

    In this case it doesn't seem very relevant, it looks like the article just assumes boxed records are dynamically or structurally typed, even though that's completely unrelated.







    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