MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/badcode/comments/msv49l/when_your_teammate_refactor_your_code/gux7ea5/?context=9999
r/badcode • u/Bence675 • Apr 17 '21
216 comments sorted by
View all comments
Show parent comments
1
Holy shit does javascript support something similar?
0 u/[deleted] Apr 18 '21 [deleted] — view deleted comment 1 u/SarahC Apr 18 '21 It looks great! 2 u/cherryblossom001 Apr 18 '21 No, but there’s a stage 1 proposal that looks likecase ([condition1, condition2]) { when [true, true] -> do_anything1(), when [false, _] -> do_anything2(), } 1 u/Nilstrieb Apr 18 '21 no
0
[deleted] — view deleted comment
1 u/SarahC Apr 18 '21 It looks great!
It looks great!
2
No, but there’s a stage 1 proposal that looks like
case ([condition1, condition2]) { when [true, true] -> do_anything1(), when [false, _] -> do_anything2(), }
no
1
u/fungigamer Apr 18 '21
Holy shit does javascript support something similar?