MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/Python/comments/m8l7ip/the_new_switchcase_statement_in_python_310/grjmppx/?context=3
r/Python • u/jamescalam • Mar 19 '21
233 comments sorted by
View all comments
Show parent comments
44
They should have made it an expression not a statement
28 u/seniornachio timfi Mar 19 '21 My thoughts exactly. Additionally I would have enjoyed PEP-642, it's more verbose but explicit is better than implicit and additionally it makes it more clear that python is duck-typed. 11 u/[deleted] Mar 19 '21 explicit is better than implicitJava flashbacks 28 u/[deleted] Mar 20 '21 Explicit doesn't mean endless repetition and needles ceremony, though. 16 u/toyg Mar 20 '21 A single letter separates boring ceremonies that nobody really needs, from images of sinister ceremonies involving needles. The marvels of language... 3 u/[deleted] Mar 20 '21 Lol that stays in! 2 u/grrrrreat Mar 20 '21 summoning malloc the devil of details and harbinger of nulls → More replies (3)
28
My thoughts exactly. Additionally I would have enjoyed PEP-642, it's more verbose but explicit is better than implicit and additionally it makes it more clear that python is duck-typed.
11 u/[deleted] Mar 19 '21 explicit is better than implicitJava flashbacks 28 u/[deleted] Mar 20 '21 Explicit doesn't mean endless repetition and needles ceremony, though. 16 u/toyg Mar 20 '21 A single letter separates boring ceremonies that nobody really needs, from images of sinister ceremonies involving needles. The marvels of language... 3 u/[deleted] Mar 20 '21 Lol that stays in! 2 u/grrrrreat Mar 20 '21 summoning malloc the devil of details and harbinger of nulls → More replies (3)
11
explicit is better than implicit
Java flashbacks
28 u/[deleted] Mar 20 '21 Explicit doesn't mean endless repetition and needles ceremony, though. 16 u/toyg Mar 20 '21 A single letter separates boring ceremonies that nobody really needs, from images of sinister ceremonies involving needles. The marvels of language... 3 u/[deleted] Mar 20 '21 Lol that stays in! 2 u/grrrrreat Mar 20 '21 summoning malloc the devil of details and harbinger of nulls → More replies (3)
Explicit doesn't mean endless repetition and needles ceremony, though.
16 u/toyg Mar 20 '21 A single letter separates boring ceremonies that nobody really needs, from images of sinister ceremonies involving needles. The marvels of language... 3 u/[deleted] Mar 20 '21 Lol that stays in! 2 u/grrrrreat Mar 20 '21 summoning malloc the devil of details and harbinger of nulls → More replies (3)
16
A single letter separates boring ceremonies that nobody really needs, from images of sinister ceremonies involving needles. The marvels of language...
3 u/[deleted] Mar 20 '21 Lol that stays in! 2 u/grrrrreat Mar 20 '21 summoning malloc the devil of details and harbinger of nulls → More replies (3)
3
Lol that stays in!
2
summoning malloc the devil of details and harbinger of nulls
44
u/[deleted] Mar 19 '21
They should have made it an expression not a statement