TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Mutably Tagged Types with Size'Class Aspect

1 pointsby LiamPowell23 days ago

1 comment

LiamPowell23 days ago
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.