3 ms·
> That's like looking at language that has both if/then/else statements and switch statements, and asking "do we really need both?". Not sure if that jab was i
by ainar-g 7y ago
> That's like looking at language that has both if/then/else statements
and switch statements, and asking "do we really need both?".
Not sure if that jab was intended or not, but Python, one of the most
popular programming languages in the world, doesn't have a switch
statement, probably for this exact reason. Python programmers use
chains of if/elif*/else? statements.