Stream: wit-bindgen

Topic: ✔ WIT constructors design/specification


view this post on Zulip Jim Teichgräber (May 07 2026 at 07:47):

but I thought you were raising this issue where functions-returning-own<self> aren't special-cased when the wit reference says they could?

Yes, that is what I was referencing originally, sorry for causing confusion ^^. I just wasn't sure whether this was seen as a flaw in other backends, or very much by design, which brings me to Till's message, which clears things up for me.

Given all this, it seems to me that it would be most reasonable to start out by emulating what other backends do, and evaluating whether functions returning own<self> are common enough to warrant heuristics to make them "true" constructors, when those heuristics could be flimsy or intransparent.

Thanks again!

view this post on Zulip Notification Bot (May 07 2026 at 07:48):

Jim Teichgräber has marked this topic as resolved.


Last updated: Jun 01 2026 at 09:49 UTC