Hacker GitHub

← All repos

ldionne/dyno

View on GitHub ↗ ★ 1,047 C++

Runtime polymorphism done right

4 mentions on Hacker News by 4 people: 2 stories, 2 comments · first 2020-09-28 · latest 2026-09-06

Mentions per year 4 mentions · busiest year 2020 (2)
20082026
  1. Ah. Dyno ( https://github.com/ldionne/dyno ) is good at this stuff. If you have types Base, Child1, Child2, you can just return a Dyno object that can be any of these, expressed as a tagged union and not a Box-equivalent, and then do…
  2. …is still very much a WIP :) I guess I should also mention my inspiration, the C++ dyno library ( https://github.com/ldionne/dyno ) I don't really see how this is relevant to typeclasses though ^^
    comment by alexnask · 2020-09-28 · in Zig's New Relationship with LLVM