RSSAmplifier

galvanist · Mar 8, 2014

Switch Statement Emulation in Python

0
Sign in to vote or save

This page cannot be shown here. You can still read it on the original site — the toolbar below keeps your place in the directory.

I’ve typically enjoyed having fall through switch statements in my programming languages. Not everyone loves em. They’re not always the right answer and they can be a bit dangerous; you miss a “break” and you “goto fail”. But they are easy to read and easy to understand – for me the switch statement is about readability (and to a lesser extent reducing the…

Read on /posts/2014-03-08-switch-statement-emulation-in-python/

Comments

Nothing yet. Say the first thing.

    Sign in to join the conversation.