Slacker News Slacker News logo featuring a lazy sloth with a folded newspaper hat
  • top
  • new
  • show
  • ask
  • jobs
Library
← Back to context

Comment by murderfs

4 days ago

> 2. Why return an std::string for the label? The label() method should return an std::string_view

This only works if it's always the same value. This doesn't work if the label is for example, set to `std::to_string(clickCount())`

0 comments

murderfs

Reply

No comments yet

Contribute on Hacker News ↗

Slacker News

Product

  • API Reference
  • Hacker News RSS
  • Source on GitHub

Community

  • Support Ukraine
  • Equal Justice Initiative
  • GiveWell Charities