TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Mutably Tagged Types with Size'Class Aspect

1 点作者 LiamPowell27 天前

1 comment

LiamPowell27 天前
TLDR: You can define a maximum size of any child classes as a property of the parent class, meaning you can have things like arrays of arbitrary child types without having to know all the possible child types in advance and without using pointers.<p>After some Googling it seems like no other language has implemented a similar feature before, which is surprising with how simple and useful this appears to be for embedded applications.