Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

It makes me curious if you apply the same rule to variable names in (other) programming, when they contain multiple items of a kind (e.g. arrays, lists, sets and so on).

 FrequentCustomerArray 
rather than

 FrequentCustomers 
? If not, why is that different?


It isn't different. There's a conflict between using the collection as a whole

 map(foo, FrequentCustomers) 
and using a member

 foo(FrequentCustomer[0]) 
Perl has plural / singular inflection :-)

 map foo($_), @FrequentCustomer; foo($FrequentCustomer[0]);




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact