3 ms·
I was gonna ask if match case wasn't a really recent thing, but it seems to be from 3.10 released in October 2021.
by estebank 4y ago
I was gonna ask if match case wasn't a really recent thing, but it seems to be from 3.10 released in October 2021.
- VeejayRampay 4y agoto be honest it is fairly recent and is not exactly "basic", I'm sure ruff people will end up covering it in the near future, I just thought it might bring some balance to mention that it doesn't yet go a hundred percent
- matsemann 4y agoI feel like it have taken quite a few tools some time to catch up. Or if they've caught up, it wasn't straight out of the box. Like, I had to upgrade my linter to handle match cases, but that bump (as we were running an older version) also introduced new rules breaking other code. Since I didn't want to take that work right then, I rewrote to an older if statement and put a task in the backlog to upgrade the linter. So I've actually seen little use of match cases so far.