Discussion
Loading...

Discussion

Log in
  • About
  • Code of conduct
  • Privacy
  • Users
  • Instances
  • About Bonfire
Ambraven :verifinking:​
Ambraven :verifinking:​
@Ambraven@social.mochi.academy  ·  activity timestamp 4 weeks ago

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

#C++ #C++Ranting

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

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 :verifinking:​
@Ambraven@social.mochi.academy replied  ·  activity timestamp 4 weeks ago

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
Dani (:cxx: Antifascista)
Dani (:cxx: Antifascista)
@DanielaKEngert@hachyderm.io replied  ·  activity timestamp 4 weeks ago

@Ambraven

You mean https://wg21.link/P2688

  • Copy link
  • Flag this comment
  • Block

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.44 no JS en
Automatic federation enabled
Log in
  • Explore
  • About
  • Members
  • Code of Conduct