Re: [PATCH 1/1] builtin/blame.c: constants into bit shift format

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> There was some discussion recently about converting these related 
> #defines to enums [0]. We might consider doing that here.
> 
> If you read through that entire thread, you'd see that there were some 
> disagreements about whether using enums for sets of bits is a good idea 
> ([1] and [2]), but it is at least something worth considering while we 
> are on this topic.
> 
> FWIW, I think it is a good idea to use an enum here.

[snip]

> [0] https://public-inbox.org/git/20191010115230.10623-1-wambui.karugax@xxxxxxxxx/
> [1] https://public-inbox.org/git/20191014182754.82302-1-jonathantanmy@xxxxxxxxxx/
> [2] https://public-inbox.org/git/xmqqk19ag60g.fsf@xxxxxxxxxxxxxxxxxxxxxxxxx/

Thanks for the handy references. You know my opinion on bitflags as
enums from reading them, but I think that we have already had that
discussion and came to a conclusion. So don't use an enum here.

The patch itself looks good, and I also prefer the bit shift format over
octal.



[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux