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...?
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