In the latest tools, a new kind of enums are now allowed:
typedef enum CarType : NSUInteger {
  FourDoorCarType,
  TwoDoorCarType
} CarType;
My question comes in parts:
- Why should I use this instead of the old way? 
- Why does - CarTypeappear twice? I tried skipping the first- CarTypeand just leaving the first line as "- typedef enum : NSUInteger {", and it seems to work fine. What are the drawbacks, if any?
- Can some types other than - NSUIntegerbe used?
 
     
     
     
     
     
     
    