I have read many posts on Stackoverflow on the subject of 'if statements vs case statements' though I haven't yet come across a post that outlines the advantages of if statements over case statements.
Reading previous posts I have learnt that case statements can be more efficient (in terms of speed) and they have better readability. But why would one use if statements over case statements?
Thanks.
Aucun commentaire:
Enregistrer un commentaire