Symbolic boolean parameters



In the questions below, pick the choice, a or b, that is easier to
understand.

	1. a. g_string_free (TRUE);
	   b. g_string_free (G_STRING_FREE_SEGMENT);

	2. a. g_main_new (FALSE);
	   b. g_main_new (G_MAIN_NOT_RUNNING);

	3. a. g_array_new (TRUE, TRUE);
	   b. g_array_new (G_ARRAY_ZERO_TERMINATE, G_ARRAY_CLEAR_ELEMENTS);

If you picked `b' for all three answers, we're on the same wavelength. 
I propose adding meaningful symbols where boolean parameters are used.

Any objections?

Eric.




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