Re-using the else keyword in loop statements was arguably not a great decision. Some sources are in this case suggesting to translate in thought else â nobreak. I think it helps to cope with this confusing syntax to everybody learning the language.
But when the else is mentally replaced by nobreak, the combation nobreak + if = elif doesnât feel natural making the mentioned tip less useful.
If this sort of mental teaching is wide spread, this change would surely be disruptive as it is based on a different mental model.
No one has taught me how to think about it and I came up with one myself. This was convenient, because it connected if-else and for-else so I needed to remember fewer independent concepts.
I waited for a year to post this so I could identify any possible red flags and such resistance came as a slight surprise to me.
I expected it to be more along the lines of:
âsimply not worth itâ
âno need to overcrowd the language unnecessarilyâ
and similar
but I see people are having real issues about this where I am still having hard time to see their POV.
I am not too fussed about this, I donât think it is âneededâ, but rather âMIGHT be nice to haveâ if people liked this.
Given that the interactions in this topic have not improved since a moderator last left a note and turned on slow mode, Iâm now closing this.
If you think someone is responding inappropriately, flag it for a moderator, donât start a back and forth argument in the thread, which just takes it off topic.
If you disagree with someone, or donât think they understand your point of view after more than two posts, move on. Especially if that person is not someone who will be involved in implementing or maintaining your idea. You do not need to respond to every single point every single person brings up.