Each dtype has a particular return type (int, str, float, Bits, etc.) but it's not immediately obvious and leads to some clunky code in places where any of the types could be returned.
It might be useful in terms of code organisation to record the return type as part of the dtype definition. If we then add a new one, such as Decimal, it won't need any extra refactoring.
Each dtype has a particular return type (int, str, float, Bits, etc.) but it's not immediately obvious and leads to some clunky code in places where any of the types could be returned.
It might be useful in terms of code organisation to record the return type as part of the dtype definition. If we then add a new one, such as Decimal, it won't need any extra refactoring.