Welcome Guest, Not a member yet? Register   Sign In
Proposal to Combine Constants
#4

That would work if data are meant to be arrays. However, if several items are grouped as arrays for the sake of utilizing array constants, I don't think it is worth the effort.

Imagine combining all the error code constants (EXIT_ERROR, EXIT_AUTO_MIN, EXIT_AUTO_MAX, etc.) to an array constant EXIT_CODES. So which one would you prefer to use the error exit code, EXIT_ERROR or EXIT_CODES[0] ?
Reply


Messages In This Thread
Proposal to Combine Constants - by John_Betong - 10-06-2021, 06:30 AM
RE: Proposal to Combine Constants - by kenjis - 10-06-2021, 10:38 PM
RE: Proposal to Combine Constants - by InsiteFX - 10-06-2021, 11:18 PM
RE: Proposal to Combine Constants - by paulbalandan - 10-07-2021, 08:46 AM



Theme © iAndrew 2016 - Forum software by © MyBB