Stream: general

Topic: method convention in WIT


view this post on Zulip nikomatsakis (Jan 02 2025 at 22:38):

I think that only resource types have "first class methods" in WIT-- is there a convention for defining methods on records/enum types? I guess just a function that takes the record type as its first argument...?

view this post on Zulip Dan Gohman (Jan 03 2025 at 13:33):

Yes, functions that take the record type as the first argument is currently the way to do this.


Last updated: Jan 24 2025 at 00:11 UTC