On Sat, 26 Oct 2024, Alejandro Colomar wrote:

>> It would also be interesting to hear the opinion of people from the BSDs

>> >    #define sizeof_array(a)  (countof(a) * sizeof((a)[0]))
>> >    #define sizeof_array(a)  (array_size(a) * sizeof((a)[0]))

Not too sure what the root context of this thread is, but in BSD land
we use NELEM or NENTS for (sizeof(a) / sizeof((a)[0])) generally.

>> and Unix/Plan9.

yay!

>Another thing I think would be interesting is to allow to choose a
>matrix of options:

I pointed out in Fedi (also mostly contextless) to thephd that another
option is devotee-style preferential voting (Condorcet etc. and “none of
the above” and “further discussion” can be voted atop or in the middle
or below the options) for this kind of thing.

bye,
//mirabilos
-- 
“It is inappropriate to require that a time represented as
 seconds since the Epoch precisely represent the number of
 seconds between the referenced time and the Epoch.”
        -- IEEE Std 1003.1b-1993 (POSIX) Section B.2.2.2

Reply via email to