{"id":29715,"date":"2021-02-04T16:14:20","date_gmt":"2021-02-04T16:14:20","guid":{"rendered":"https:\/\/merikebi.warrenmyers.com\/?p=29715"},"modified":"2021-02-04T16:14:20","modified_gmt":"2021-02-04T16:14:20","slug":"heychelseatroy-an-example-python-has-no-case-statement-this-makes-it-different-from-most-major-languages-this-isnt-an-oversight-instead-the-designers-rejected-the-suggestion-to-add-o","status":"publish","type":"post","link":"https:\/\/merikebi.warrenmyers.com\/?p=29715","title":{"rendered":"@HeyChelseaTroy &#8220;an example: Python has no case statement. This makes it different from most major languages. This isn\u2019t an #oversight. Instead, the designers rejected the suggestion to add one. They felt that being able to make a stack of if&#8230;elif&#8230;elif&#8230; got the job done well enough.&#8221;"},"content":{"rendered":"<blockquote class=\"twitter-tweet\">\n<p lang=\"en\" dir=\"ltr\">&quot;an example:<\/p>\n<p>Python has no case statement. This makes it different from most major languages. This isn\u2019t an <a href=\"https:\/\/twitter.com\/hashtag\/oversight?src=hash&amp;ref_src=twsrc%5Etfw\">#oversight<\/a>. Instead, the designers rejected the suggestion to add one. They felt that being able to make a stack of if&#8230;elif&#8230;elif&#8230; got the job done well enough.&quot;<\/p>\n<p>&mdash; Warren Myers \ud83d\udc27\ud83d\udc3f (@warrenmyers) <a href=\"https:\/\/twitter.com\/warrenmyers\/status\/1357361033631981571?ref_src=twsrc%5Etfw\">February 4, 2021<\/a><\/p><\/blockquote>\n<p><script async src=\"https:\/\/platform.twitter.com\/widgets.js\" charset=\"utf-8\"><\/script><br \/>\n<br \/>\nfrom Twitter https:\/\/twitter.com\/warrenmyers<\/p>\n<p>February 04, 2021 at 11:11AM<br \/>\nvia <a href=\"https:\/\/ifttt.com\/?ref=da&#038;site=wordpress\">IFTTT<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>&quot;an example: Python has no case statement. This makes it different from most major languages. This isn\u2019t an #oversight. Instead, the designers rejected the suggestion to add one. They felt that being able to make a stack of if&#8230;elif&#8230;elif&#8230; got the job done well enough.&quot; &mdash; Warren Myers \ud83d\udc27\ud83d\udc3f (@warrenmyers) February 4, 2021 from Twitter &hellip;<br \/><a href=\"https:\/\/merikebi.warrenmyers.com\/?p=29715\" class=\"more-link pen_button pen_element_default pen_icon_arrow_double\">Continue reading <span class=\"screen-reader-text\">@HeyChelseaTroy &#8220;an example: Python has no case statement. This makes it different from most major languages. This isn\u2019t an #oversight. Instead, the designers rejected the suggestion to add one. They felt that being able to make a stack of if&#8230;elif&#8230;elif&#8230; got the job done well enough.&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_hide_featured_image":false,"_jetpack_featured_image_duplicate_dismissed":0,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_post_was_ever_published":false},"categories":[4],"tags":[792],"keyring_services":[],"class_list":["post-29715","post","type-post","status-publish","format-standard","hentry","category-blih","tag-twitter"],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=\/wp\/v2\/posts\/29715","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=29715"}],"version-history":[{"count":1,"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=\/wp\/v2\/posts\/29715\/revisions"}],"predecessor-version":[{"id":29716,"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=\/wp\/v2\/posts\/29715\/revisions\/29716"}],"wp:attachment":[{"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=29715"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=29715"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=29715"},{"taxonomy":"keyring_services","embeddable":true,"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=%2Fwp%2Fv2%2Fkeyring_services&post=29715"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}