DEV Community

loading...

Discussion on: Reverse switch?

Collapse
vonheikemen profile image
Heiker

Have you seen or done something like that?

I have done something like that. Only in one side project. I don't hate it, but I also don't love it.

Do you think it is good practice?

It isn't. I don't think is bad, but is so uncommon that I bet people will run the other way the moment they see it.

Which one is more readable?

The one you're more familiar with.

Forem Open with the Forem app