4

Recently the new release of Python 3.10 introduced a new syntax called match/case which is in fact a classical switch/case syntax (ref: https://docs.python.org/3.10/whatsnew/3.10.html).

This is crucial from the perspective of the quality of the following very active question: Replacements for switch statement in Python?:

screen-shot showing the locked question

The new situation may require new answers (or updating the existing ones) or at least comments below question. For the above example, it's not possible to add a new answer nor comment.

How should we react in such a case? I flagged this question for the moderator intervention but I'd prefer to confirm that this was the right decision.

25
  • 4
    You post an answer. No need to drag moderators into it. Apr 28, 2021 at 13:49
  • 1
    For the general situation, I'd mod flag too, but first, be very very sure that the answer you wish to post is extremely high quality and not remotely covered by any of the existing answers. When flagging, you might include a link to the Markdown of the answer you wish to post so they can see for themselves if it's worthy. Apr 28, 2021 at 13:49
  • 18
    @Zoe It's locked. Apr 28, 2021 at 13:50
  • 15
    There is already an answer on match/case on that Q&A. Apr 28, 2021 at 13:53
  • 9
    How to react ... rage quit ....
    – rene
    Apr 28, 2021 at 14:02
  • 4
    @Yatin The author updated it in March. Apr 28, 2021 at 14:06
  • 3
    If there weren't already an updated answer, you can ask a new question specifying the version of Python, linking to the original, noting the differences with the new question, and self-answer it. Apr 28, 2021 at 14:11
  • 3
    Related: Privileges: edit community wiki Apr 28, 2021 at 14:27
  • 1
    I Am Not A Moderator, and notwithstanding whether an existing answer is relevant in this case: I think flagging is the right course of action. For an active tag such as Python, you can also drop by the Python chat room – there are many people with better edit privileges, and some mods with background knowledge on the tag frequent the channel. Even if people cannot help you directly, they might advise on how to best formulate a new answer to such a popular question. Apr 28, 2021 at 15:05
  • 4
    Well, the 5th answer by order of votes already covers the new match/case syntax... No reason to bother mods or unlock... If you feel you have some information to add - suggest an edit
    – Tomerikoo
    Apr 28, 2021 at 15:09
  • 2
    Regarding your last comment above, see Introducing Outdated Answers project
    – Tomerikoo
    Apr 28, 2021 at 15:15
  • 1
    Wow, the improved error messages showing missing brackets would have a big effect if people weren't all still using 3.7 Apr 28, 2021 at 15:27
  • 2
    @Nick people rarely read the error messages anyways.
    – Braiam
    Apr 28, 2021 at 17:31
  • 3
    @PeterDuniho The fact that this question keeps coming up suggests a pressing need to reevaluate how Stack Overflow works WRT outdated answers, hence the Outdated Answers project. Linking to old questions as dupes, when Outdated Answers has the potential to solve this issue once and for all, is not helpful IMO.
    – Ian Kemp
    Apr 29, 2021 at 11:29
  • 2
    @IanKemp On the other hand the problem is really not new. Meta talked about outdated answers already in 2015 and maybe even before. The ideas from the past only never got implemented. The problem got worse probably, but I'm not sure if it warrants another discussion. We foremost are limited by speed of change in the platform for many years, not by good ideas of what to change.
    – Trilarion
    Apr 29, 2021 at 12:14

0

Browse other questions tagged .