Hacker News new | ask | show | jobs
by mendyberger 107 days ago
Is `component {}` valid wit syntax? I've never seen that before
1 comments

It's proposed here: https://github.com/WebAssembly/component-model/issues/598

Basically, it's sugar for `package` and `world` in the case where you aren't actually defining a world for others to use, and just for your own use. In such a case, the package and world names are irrelevant anyway.