Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
halayli
on May 29, 2023
|
parent
|
context
|
favorite
| on:
C++17’s useful features for embedded systems
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.
delta_p_delta_x
on May 30, 2023
[–]
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: