Hacker News new | past | comments | ask | show | jobs | submit login

So that they don't misuse it. A good example is vec.empty(). There's no point calling vec.empty() without checking its return value. It helps distinguish noun vs verb.



This is really a mis-design; the proper name for the function should ask a question: `std::vector::is_empty()`.




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

Search: