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
When implementing recursive traversal functions, I find myself repeatedly doing checks like:
varval tftypes.Value...ifval.Is(tftypes.String) ||val.Is(tftypes.Number) ||val.Is(tftypes.Bool) ||val.Is(tftypes.DynamicPseudoType) {
// no more recursion - do stuff with value and return
}
// Implement recursion for complex types
It would be great to have a more concise way to check if the value is a primitive.
I guess I'm suggesting something like:
When implementing recursive traversal functions, I find myself repeatedly doing checks like:
It would be great to have a more concise way to check if the value is a primitive.
I guess I'm suggesting something like:
The text was updated successfully, but these errors were encountered: