Skip to content

Make inline-block layout type-safe :)#151

Draft
afishhh wants to merge 2 commits intomasterfrom
const-tagged-shaped-item
Draft

Make inline-block layout type-safe :)#151
afishhh wants to merge 2 commits intomasterfrom
const-tagged-shaped-item

Conversation

@afishhh
Copy link
Copy Markdown
Owner

@afishhh afishhh commented Jan 31, 2026

I had some fun.

We love zero-cost abstractions over here. This is just like C++ :)

@afishhh
Copy link
Copy Markdown
Owner Author

afishhh commented Jan 31, 2026

Not sure whether this is worth the complexity right now but this proves it is possible to get rid of those nasty assertions in a zero-cost fashion.
In reality it'd probably suffice to just use a normal generic and live with the realloc(s) when entering layout but that's not any fun.
(though I haven't even tested if this avoids the realloc lol)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant