[Python-ideas] Yet Another Switch-Case Syntax Proposal

Philipp A. flying-sheep at web.de
Sat Apr 26 19:52:29 CEST 2014


2014-04-26 17:17 GMT+02:00 Steven D'Aprano <steve at pearwood.info>:

> Also, folks might like to review the wide range of semantics and syntax
> for switch/case in different languages:
>
> http://rosettacode.org/wiki/Conditional_Structures
>

you’re missing the language calling this “pattern matching”:
http://rosettacode.org/wiki/Pattern_matching

i especially like scala’s way of doing it (even while recognizing that it’s
no good fit for python)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20140426/2126287b/attachment.html>


More information about the Python-ideas mailing list