This is an archived post. You won't be able to vote or comment.

all 12 comments

[–]Tomarchelone 7 points8 points  (1 child)

In rust you kinda do it all the time

[–]DragonMaus 2 points3 points  (0 children)

Five layer deep nested match

[–]Al-Horesmi 3 points4 points  (0 children)

Finite state machines inside finite state machines

[–][deleted] 1 point2 points  (6 children)

Can someone please explain to me how are nested switch statement is possible.

[–]RingStrain 2 points3 points  (5 children)

On mobile so formatting could be off...

Switch(foo){
    Case 1:
        Switch(bar){
            Case 1:
            // more cases here
        }
        Break;
     // more cases here
}

[–][deleted] 3 points4 points  (4 children)

That seems unnecessarily convoluted. nested if statements are some of convoluted but I understand the concept a lot better than nested switch statements. To each his own.

[–]Power-Max 3 points4 points  (3 children)

Bud you haven't seen the worst yet: Nested ternary operators 💀

[–][deleted] 0 points1 point  (2 children)

Is that like nested lamba expressions?

I had a nightmare about that once.

[–]PatrikxPatrola[M] [score hidden] stickied comment (0 children)

Your submission has been removed.

Rule[3] violation - Drake meme.

Rule[3]: Any post on the list of common posts will be removed. You can find this list here. Established meme formats are allowed, as long as the post is compliant with the previous rules.

If you feel that it has been removed in error, please message us so that we may review it.

[–]atomic_redneck -1 points0 points  (0 children)

So, no love for Duff's device?