I was doing a code review and I saw assignment of single quoted strings to enum values:
enum
{
Option_1 = 'a',
Option_2 = 'b'
} ;
While this makes for slightly more readable code (though the enum's meaning should be pretty much in the name of the num), it looks silly to me.
I didn't know you COULD do that and after studying it, I can see that all that happens is the binary value of the "characters" you're using gets thrown into an int.
Does anyone else do this in practice? Or is this a bad practice?