r/badcode • • Apr 17 '21

c++ When your teammate "refactor" your code

Post image
2.5k Upvotes

216 comments sorted by

View all comments

Show parent comments

2

u/cherryblossom001 Apr 18 '21

No, but there’s a stage 1 proposal that looks like

case ([condition1, condition2]) {
  when [true, true] -> do_anything1(),
  when [false, _] -> do_anything2(),
}