On 9/27/2013 4:44 PM, "Luís Marques" <[email protected]>" wrote:
On Friday, 27 September 2013 at 19:23:12 UTC, Walter Bright wrote:static assert(0);Do you prefer assert(0) instead of assert(false)?
Do whichever you prefer.
Is it not worth to put a message after the 0/false? (static assert(0, "foo missing"); )
I find assert messages to be redundant, pointlessly repeating what is obvious from the context, and saying things an extra time.
But I'm in the minority with that opinion.
BTW, does that mean that gcc also defines capitalized "OSX", "Posix", etc.? (otherwise I don't understand your argument)
If you're looking for gcc naming consistency, you'll be badly disappointed.
