Python has for loop syntax with else clause. They also have a while-else construct too. Would you use it? #python
Conversation
Notices
-
nixCraft 🐧 (nixcraft@mastodon.social)'s status on Wednesday, 22-May-2024 18:47:27 JST nixCraft 🐧 -
Freevolt (freevolt24@mastodon.social)'s status on Wednesday, 22-May-2024 19:06:22 JST Freevolt @nixCraft Oh it makes sense. I just thought about the code that I don't have this construct. It'd be much cleaner this way, while it's straightforward to understand what it means even when you've never heard of this construct.
-
Arthur (averseabfun@mastodon.social)'s status on Wednesday, 22-May-2024 21:25:43 JST Arthur @nixCraft maybe.
-
Taran Rampersad (knowprose@mastodon.social)'s status on Thursday, 23-May-2024 08:08:02 JST Taran Rampersad @nixCraft The only real use I had for it was a multithreading email app I wrote for a company that required... I think it was 3 threads, since I was also dealing with Rsyslog...
-