[Tutor] Name for this type of class?
Richard Damon
Richard at Damon-Family.org
Sat Aug 3 13:57:07 EDT 2019
On 8/3/19 1:40 PM, Alex Kleider wrote:
> On 2019-08-03 10:16, Mats Wichmann wrote:
>
>> ..... It also comes up here:
>>
>>>> file_count
>>>> line_count
>>>> byte_count
>>>> row_count
>>>> batch_count
>>>> job_count
>>>> error_count
>>>> warning_count
>>
>> why not "files", "lines", "bytes"... the plural form already tells you
>> it's a counter.
>
> To me "files", "lines", "bytes" implies collections of files, lines
> bytes. (i.e. arrays or tuples...)
> "___count" implies an integer.
> If the latter, I'd use "n_files", "n_lines" ... (possibly without the
> underscores if you find typing them a bother.)
> Comments?
I agree, plural nouns imply collections, and collections should
generally be plural nouns.
file_count is fine to me, or it could be numfiles or nfiles (possibly
adding the underscore)
--
Richard Damon
More information about the Tutor
mailing list