wit-bindgen icon indicating copy to clipboard operation
wit-bindgen copied to clipboard

C#: Generate meaningful `ToString` methods for types

Open dicej opened this issue 1 year ago • 0 comments

Per https://github.com/bytecodealliance/wit-bindgen/pull/968#issuecomment-2175527144, we should generate meaningful ToString method overrides, at least for types which are used as errors. This would allow us to generate a useful diagnostic message when constructing WitExceptions, which application code can catch and print.

dicej avatar Jun 18 '24 14:06 dicej