Ari Joury, PhD
Aug 12, 2022

--

Janek, those are some interesting thoughts indeed! The advent of list comprehensions and similar constructs certainly plays a role in the fact that for/else loops are a dying species.

I'm inclined to think that for/else loops do have some use cases — one might consider this in software testing and debugging — but indeed they're pretty niche. Then again, that's exactly what this article was about; presenting features that you might've forgotten about. Although admittedly this feature might be past its prime by now.

Thanks again for your thoughts!

--

--

Ari Joury, PhD
Ari Joury, PhD

Written by Ari Joury, PhD

Founder of Wangari. Sustainable finance & ESG-financial modeling. Get all articles 3 days in advance: https://wangari.substack.com

No responses yet