Discussion
Loading...

Post

  • About
  • Code of conduct
  • Privacy
  • Users
  • Instances
  • About Bonfire
Ambraven :verifinking:​
@Ambraven@social.mochi.academy  ·  activity timestamp last week

I really hate the need for the "break" keyword in c++ switch...

#C++ #C++Ranting

  • Copy link
  • Flag this post
  • Block
Ambraven :verifinking:​
@Ambraven@social.mochi.academy replied  ·  activity timestamp last week

Do you really still need it in C++26 ?

Can't C++ get a better switch ? Does it has one nobody told me about ?

#Cpp

  • Copy link
  • Flag this comment
  • Block
Ambraven :verifinking:​
@Ambraven@social.mochi.academy replied  ·  activity timestamp last week

If you still want to keep the old broken switch around, can we at least get a new better version?

Like call it match or something... And make it work with strings while you're at it.

#Cpp #cppRant

  • Copy link
  • Flag this comment
  • Block
Log in

bonfire.cafe

A space for Bonfire maintainers and contributors to communicate

bonfire.cafe: About · Code of conduct · Privacy · Users · Instances
Bonfire social · 1.0.1-alpha.8 no JS en
Automatic federation enabled
  • Explore
  • About
  • Members
  • Code of Conduct
Home
Login