I have done use-case analysis for this as part of:
- Generalize `elif-else` to all compound statements
- `while-elif-else`, `for-elif-else`, `try-except-elif-else`
Cpython repo with site-packages from .venv.
try-else-if
- 407for-else-if
- 114while-else-if
- 28
Those are with else
immediately followed by if
(my proposal was adding conditional-like-elif
). Thus, numbers for pure else
would be much higher.
I do not use while/for-else
very much, but when I do, I always feel that something is missing.