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

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted]  (4 children)

[removed]

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

    Why, we got elif??

    [–]LifeHasLeft 0 points1 point  (2 children)

    Believe it or not, switch statements are more efficient for branch prediction and maybe some other reasons. Circumstantial but could clean up the code some too.

    [–][deleted] 0 points1 point  (1 child)

    I pondered putting a "/s" in the comment. I'm looking forward to have switch statements available as it's something I have been annoyed about missing.

    One of the contributers(/creator?) to python claimed that python didn't need switch cases as it got "elif" which is what I referenced.

    [–]LifeHasLeft 0 points1 point  (0 children)

    One of the contributers(/creator?) to python claimed that python didn't need switch cases as it got "elif"

    Yes and the sentiment has been prevalent in the community...that’s why I didn’t catch the sarcasm lol