> [...] > > C switch is just a different way of doing an if/elif tree, I do not > > really see any real difference. Although, if there is you can feel free > > to enlighten me. :) > [...] > > 'fraid not -- though it depends on which compiler and how many cases. > For 3 or more cases compilers will generate a hardware supported jump > table: a switch statement is a jump table not a cascade of if > statements.
Good point, I had forgotten that. Although, it sounded like the OP was referring more to syntax and coding practice than the low level implementation. >I'm already enjoying this lovely language. >One of the few c things I miss is the switch/case statement. if and >elif in it's place is a bit cumbersome. Still, it works. Ramit Ramit Prasad | JPMorgan Chase Investment Bank | Currencies Technology 712 Main Street | Houston, TX 77002 work phone: 713 - 216 - 5423 This email is confidential and subject to important disclaimers and conditions including on offers for the purchase or sale of securities, accuracy and completeness of information, viruses, confidentiality, legal privilege, and legal entity disclaimers, available at http://www.jpmorgan.com/pages/disclosures/email. _______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor