I liked this post, not because I think switch (true) is a good paradigm (it isn't), but because the post itself is interesting.
The author isn't saying "you should use switch (true) in your code", they're saying "let's have a discussion about whether switch (true) is acceptable". IMO, that's a useful discussion!
I can't believe some people put hearts
I liked this post, not because I think
switch (true)
is a good paradigm (it isn't), but because the post itself is interesting.The author isn't saying "you should use
switch (true)
in your code", they're saying "let's have a discussion about whetherswitch (true)
is acceptable". IMO, that's a useful discussion!That's the fun of this item 😊
It shows it's important to keep an open mind!