not complaining but seeking to understand how the Nim compiler can be this intelligent and how to work with just two cases instead of all case myvar.kind: of JArray: echo "it is an array" of JObject: echo "it is an object" Error: not all cases are covered; missing: {JNull, JBool, JInt, JFloat, JString}