You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't quite agree. In fact I suggested to treat more submessages as RawMessage (#88).
With any or map[string]any submessages I need to do a lot of type casting when accessing fields in that message. This is cumbersome and error-prone. Instead, when there is a RawMessage, I can Unmarshal the message into a user-defined type of my choice. Then accessing fields in this submessage is type-safe and easy.
So I think that RawMessage is much more type safe and easier to handle.
Using
json.RawMessage
for request arguments makes the users ofgo-dap
unnecessary cumbersome.any
would be a better choice. Compareand
The text was updated successfully, but these errors were encountered: