T
Tubular Technician
Hello, World!
Reading this group for some time I came to the conclusion that
people here are split into several fractions regarding size_t,
including, but not limited to,
* size_t is the right thing to use for every var that holds the
number of or size in bytes of things.
* size_t should only be used when dealing with library functions.
* size_t should really be a signed type (less warnings)
* size_t is unnecessary (size of object in memory never exceeds
what can be held in an integer).
* size_t is visually unpleasant.
* size_t clutters up / is an uglification of the language
(solving only a theoretical problem).
* size_t usage may be non-portable because it won't be around
anymore in 100 years.
Sooo... what's the real deal with size_t? Where should it be
used/avoided (examples?)
Reading this group for some time I came to the conclusion that
people here are split into several fractions regarding size_t,
including, but not limited to,
* size_t is the right thing to use for every var that holds the
number of or size in bytes of things.
* size_t should only be used when dealing with library functions.
* size_t should really be a signed type (less warnings)
* size_t is unnecessary (size of object in memory never exceeds
what can be held in an integer).
* size_t is visually unpleasant.
* size_t clutters up / is an uglification of the language
(solving only a theoretical problem).
* size_t usage may be non-portable because it won't be around
anymore in 100 years.
Sooo... what's the real deal with size_t? Where should it be
used/avoided (examples?)