5 Replies Latest reply on Apr 13, 2016 1:12 AM by user_1377889

    annoying ubiquitus u's ? (or is it just me?)


      Do you really need all those little u's (unsigned designators) everywhere?


      I'm very fluent in visually reading "hexadecimal" data. As such, all those little  u's are really annoying.


      If the array is already type casted with uint8, do we still need to add the u suffix to the data entries?


      This slows me down significantly in my coding efficiency.


      See below for an example.


      --------------------------- too many u's --------------------------------------


      /* I2C Read service UUID*/


      const uint8 I2CReadUUID[16] = {


      0x00u, 0x00u, 0xFBu, 0x34u, 0x9Bu, 0x5Fu, 0x80u, 0x00u, \


      0x00u, 0x80u, 0x00u, 0x10u, 0x01u, 0x00u, 0x0Au, 0x00u \




      ---------------------- BETTER and more READABLE ----------------------


      /* I2C Read service UUID*/


      const uint8 I2CReadUUID[16] = {


      0x00, 0x00, 0xFB, 0x34, 0x9B, 0x5F, 0x80, 0x00, \


      0x00, 0x80, 0x00, 0x10, 0x01, 0x00, 0x0A, 0x00 \