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
Implementing proper generics across the library instead of using Any for encoding and decoding functions. This task is based on discussions from #725
What solution would you like?
An example of using multiple types for encoding is RLP.encode function. This function accepts an array that can hold by itself single values like Data but also nested arrays.
What context is your feature request related to?
Implementing proper generics across the library instead of using
Any
for encoding and decoding functions. This task is based on discussions from #725What solution would you like?
An example of using multiple types for encoding is
RLP.encode
function. This function accepts an array that can hold by itself single values likeData
but also nested arrays.For example lets imagine this solution:
Where
Web3DataType
is the protocol that has:But we still must account for nested arrays, like in the case of
RLP.encode
. It can legally be[T, T, [T, [T]]]
and we must be able to encode it.@yaroslavyaroslav has suggested using the feature added in Swift 5.7:
Any additional context?
No response
The text was updated successfully, but these errors were encountered: