Comp's Tags: When Keywords Become Extensible Hierarchies
Picture extending true and false with 'maybe' without breaking a thing. Comp's tags do just that, weaving hierarchies into every corner of the language.
DevTools FeedApr 03, 20263 min read
⚡ Key Takeaways
Comp tags turn keywords into extensible hierarchies, extending builtins like bool without breakage.𝕏
They eliminate stringly-typed enums, powering units, shapes, and parameter inference natively.𝕏
Dual role as shapes and values enables powerful, discoverable code organization.𝕏
The 60-Second TL;DR
Comp tags turn keywords into extensible hierarchies, extending builtins like bool without breakage.
They eliminate stringly-typed enums, powering units, shapes, and parameter inference natively.
Dual role as shapes and values enables powerful, discoverable code organization.