The benefit of Structs over maps is that we have compile time checks so e.g. if we do state.non_existing_field we will be warned by the compiler about this fact.
If we want to keep structs for internal states, we should also convert DTLSTransport state into struct.
Any thoughts?
Personally, I would move to maps :stuck_out_tongue:
The benefit of Structs over maps is that we have compile time checks so e.g. if we do
state.non_existing_field
we will be warned by the compiler about this fact.If we want to keep structs for internal states, we should also convert DTLSTransport state into struct.
Any thoughts?
Personally, I would move to maps :stuck_out_tongue: